Prepare a program for debugging

When compiling the program that you want to debug, you must add the debug flag to your compile command. For most compilers this is -g.

We recommend that you turn off compiler optimizations as they can produce unexpected results when debugging. If your program is already compiled without debug information you will need to make the files that you are interested in again.

The Welcome page enables you to choose the kind of debugging you want to do, for example you can:

  • Run a program from DDT and debug it.

  • Debug a program you launch manually (for example, on the command line).

  • Attach to an already running program.

  • Open core files generated by a program that crashed.

  • Connect to a remote system and accept a Reverse Connect request.