Enable allow breakpoints everywhere
option in VSCode settings.
- Open
dap-estgi-vscode-extension
folder by using theFiles/Open Folder
menu. - Open the
src/extension.ts
file. - press F5 to run the extension in a new VSCode window.
- Open your project folder that was compiled with
ghc-wpc
orwpc-plugin
- Select the debug view on the side bar
- Click to
create a launch.json file
, then selectHaskell DAP ESTGi
- Edit the
program
field to be more specific with the application name if the debugee project has multiple executables- If there is only one executable then the default value should work
- A more specific pattern would be:
"program": "${workspaceFolder}/--EXECUTABLE_NAME-ghc_stgapp"
- Start
dap
server:(cd dap-estgi-server ; stack run)
- Press F5