phoityne / hdx4vsc

Haskell Debugger Extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=phoityne.phoityne-vscode
BSD 3-Clause "New" or "Revised" License
50 stars 9 forks source link

Debugger keeps loading after clicking "Start Haskell Debugging" #7

Closed runeksvendsen closed 4 years ago

runeksvendsen commented 4 years ago

When I set a breakpoint in a function, and click "Start Haskell Debugging" on it, the VS Code debugger just keeps loading, without ever breaking at the breakpoint.

Here's a screen capture of the process: hs-debug-720p

Versions:

Package Version
phoityne.phoityne-vscode 0.0.24
GHC 8.6.5
VS Code 1.41.1 (commit 26076a4de974ead31f97692a0d32f90d735645c0)
phoityne-vscode 0.0.28.0
haskell-dap 0.0.14.0
ghci-dap 0.0.13.0
haskell-debug-adapter 0.0.32.0
phoityne commented 4 years ago

Hi.

haskell-debug-adapter might be waiting for an initial prompt from ghci. Could you confirm that the initial prompt string in the lauch.json is match with actual prompt on ghci ?

"ghciInitialPrompt": "Prelude> ",

Regards.

runeksvendsen commented 4 years ago

Thank you! That was indeed the issue. My ghci prompt is "λ>". Changing the ghciInitialPrompt setting to this fixed the issue.