Open steve3p0 opened 5 years ago
Hi. The haskell-dap is a customized ghc which has some interfaces giving more detail of debugging condition, data, etc.
You can specify the ghc(debugger) implementation with the option "--with-ghc", therefore you have changed from default ghc.exe to haskell-dap.exe by adding "--with-ghc=haskell-dap"
From your output, it seems that haskell-dap worked well. Could you show debug log, by changing debugLevel to "DEBUG" in the launch.json. And let me know the setting value of "stopOnEntry" attribute in the launch.json too.
Regards.
Hello, I am trying to debug Haskell with Visual Studio Code.
I am using the following extensions:
But the "--with-ghc=haskell-dap" option causes the IDE to just hang. I made sure that phoityne-vscode and haskell-dap are configured properly.
Check configuration:
So if I launch debugging in Visual Studio Code with ghciCmd set to the following in launch.json:
stack ghci --with-ghc=haskell-dap --test --no-load --no-build --main-is tests --ghci-options -fprint-evld-with-show
It spits out the output below and then just hangs. If I take the "--with-ghc=haskell-dap" option out, it runs without error. Can someone tell me briefly what these options do and why do we want these specific launch options to use in the Visual Studio Code IDE?
Thanks, Steve
Output of "stack ghci --with-ghc=haskell-dap" ghciCmd in launch.json: