@hackage phoityne-vscode0.0.1.0

ghci debug viewer on Visual Studio Code

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)

Document

Install

Run stack install

% stack new project
  . . . . .
%
% cd project
% stack install phoityne-vscode
  . . . . .
%

Prepare vscode extensions

  1. create folder "%USERPROFILE%.vscode\extensions\phoityne-vscode"
  2. copy "phoityne-vscode-0.0.1.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"

(*) download by stack unpack.

% stack unpack phoityne-vscode
%

Important

  • need c:\temp folder. phoityne.log file will be created.
  • breakpoint can be set in a .hs file which defineds "module ... where".
  • source file extension must be ".hs"