Understanding the debugger

The debugger is a tool built in the runtime system that allows you to control the execution of a program step by step, so that you can locate logical and runtime errors.

To start the runtime system in debug mode, use the -d option of fglrun, for example:
fglrun -d myprog

The debugger can be used from the command line shell, but can also be called from a graphical debugging tool that understands the debugging commands of fglrun -d. The syntax of the commands is similar to the gdb debugger.