Is there a step-through debugger or similar for Haskell?
Hoed - The Lightweight Haskell Tracer and Debugger Hoed is a tracer/debugger that offers most of HATs functionality, and works with untransformed libraries. Hoed can therefore be used to debug much more programs than traditional tracer/debuggers.
Debugging. To debug the main function of a file, press cmd-shift-p (Mac) or ctrl-shift-p (Linux/Windows) to launch the command palette, type in haskell debug and press enter.
Introduction. GHCi is GHC's interactive environment, in which Haskell expressions can be interactively evaluated and programs can be interpreted.
GHCi has an included debugger.
Don Stewart wrote a nice introductory tutorial some time ago.
There's also hood, which lets you observe intermediate structures.
Some older projects, such as hat, seem to have fallen into bitrot/off the internet.
Note – all the above packages are text-based and platform independent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With