phoityne / haskell-debug-adapter

Debug Adapter for Haskell debugging system.
https://hackage.haskell.org/package/haskell-debug-adapter
BSD 3-Clause "New" or "Revised" License
54 stars 8 forks source link

Debugger Doesn't Terminate on Error #14

Open lordmilko opened 4 years ago

lordmilko commented 4 years ago

In Visual Studio and Visual Studio Code, when haskell-debug-adapter runs into an error it continues running indefinitely, until the user terminates the debugger. The debugger should automatically halt when a problem occurs so that the user can rectify the issue

For example, consider the following code

module Main where

main = do
  putStrLn 3

This will result in a compilation failure (3 is not a string - should be putStrLn $ show 3) however when you attempt to run this under haskell-debug-adapter, the debugger just keeps running indefinitely as if the program is still going