Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Compiling Your Code for Debugging

You must prepare your program for source-level debugging with dbx by compiling it with the -g option, which is accepted by the C compiler, C++ compiler, Fortran compiler, and Java compiler. dbx also supports code written in the C++11 and C11 standard. For more information, see Compiling a Program for Debugging.