packages feed

phoityne-vscode-0.0.3.0: README.md


# Phoityne VSCode

Phoityne is a ghci debug viewer for Visual Studio Code. (on Windows)


## Debug on VSCode

1. Start VSCode
2. Open stack project folder
3. Open debug view
4. Open launch.json
5. Set startup source file. Default file is test/Spec.hs
6. Run debug(F5)

[![Demo Video1](https://sites.google.com/site/phoityne/doc_jp/demo01.gif)](https://sites.google.com/site/phoityne/doc_jp/demo01.gif?attredirects=0)

## Install


### Run stack install

    % stack install phoityne-vscode
      . . . . .
    %


### Prepare vscode extensions

1. create folder "%USERPROFILE%\.vscode\extensions\phoityne-vscode"
2. copy "phoityne-vscode-0.0.#.0\vscode\package.json"(*) to "%USERPROFILE%\.vscode\extensions\phoityne-vscode"
3. copy "%USERPROFILE%\AppData\Roaming\local\bin\phoityne-vscode.exe" to "%USERPROFILE%\.vscode\extensions\phoityne-vscode"
4. Install "Haskell Syntax Highlighting" extension. Ctrl+p and put "ext install haskell syntax highlighting".

(*) download by stack unpack.

    % stack unpack phoityne-vscode
    %


### Important

* breakpoint can be set in a .hs file which defineds "module ... where".
* source file extension must be ".hs"


## Key Bindings

* F5 : start debug
* F6 : show command menu (for stack watch)
* Shift + F6 : stop stack watch
* F7 : stack clean & build
* F8 : stack test