OQamlDebug
Features
- Emulates only the emacs mode from OCamlDebug, does not need any hooks into ocaml core.
- Full Qt application: can be compiled on Windows, MacOS and Linux
- Save/Restore of window position, and debug parameter.
- Detection of the modification of the debugged application or sources. (automatically reloaded when modifed)
- Syntax highlighting of ocamldebug command and ocaml sources.
- Persistent command line history
- Mouse support: middle click on a symbol in the code to print it, and mouse wheel to step/backstep through the code.
- Setting breakpoints directly into the source code.
Download
Sources: http://oqamldebug.forge.ocamlcore.org/oqamldebug-0.0.0.tar.gz
Compiling
First install Qt 4.7 or above.
then:
$ qmake
$ make
Usage
oqamldebug "ocamldebug arguments"
if no arguments are provided, OQamlDebug starts with the arguments of the previous session.
Using it with an IDE
OQamlDebug reloads automatically the ocaml sources as soon as they are modified.
If the debugged application is modified, the debugger is automatically reinitialized.
So it is not necessary to close OQamlDebug when editing a project.
Mouse
Source Window
In the source window, a click with the middle button displays the contains of a variable.
The context menu permits to set a breakpoint to the selected location.
Debugger Window
In the debugger window, the wheel mose can be use for debugging purpose:
- Shift+Wheel: performs a single step or a single backstep.
- Control+Wheel: performs a step over (next command) or a step over backwards (previous command).
- Control+Shift+Wheel: navigate through the call stack.