Is there a trace debugger like `dbg` available for Haskell or OCaml?

Is there a trace debugger like dbg for Haskell or OCaml?

Very informal, printf-style debugging is only better, fully configurable at runtime. In fact, the user can register a trace handler at system startup, which will be called for each action from the set of actions supported by the runtime (for example, each time the function is called / returned) for each message sent / received, etc.). the handler can register each operation, which gives a pleasant sequence of all the steps that occur in (part) of the system.

This mechanism can be used for logging / debugging, profiling certain parts of the system, but in many cases, just to detect how the new (unknown to the programmer) system works.

+5
source share
1 answer

For Haskell, GHCi provides a simple style debugging debugger. Check the documentation to find out more about this. Some of its features

  • Ability to set a breakpoint
  • Execution execution
  • Checking local variables
  • Exception Handling as Checkpoints
  • Entering text into any code for immediate execution.
+4
source

Source: https://habr.com/ru/post/1201550/


All Articles