Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact


Debugging your D-app with GDB is roughly equivalent to debugging a C-app. 1. Add the -g compiler-switch to enable debug-info to be generated in the binary 2. Launch the application with

gdb --args <myprog> <arg1> <arg2> ...

Catching Exceptions

Usually, exceptions can be caught by adding a breakpoint to _d_throw_exception. (May be compiler-specific)

break _d_throw_exception