Debugging libraries

The IDE supports debugging static or shared libraries. You can trace program execution in and out of functions in any library linked to your application.

The only requirement is that you compile the libraries with debug information. If your project uses standard makefiles, you can do so by setting the appropriate flag (command option), which is explained in the qcc entry in the QNX Neutrino Utilities Reference. If your project uses recursive makefiles, you must specify a debug build variant through the QNX C/C++ Project properties.

When the project builds successfully, you can start debugging the application and step through code, set breakpoints, and examine variables in library functions as you would in application code. The library debug symbols (i.e., function names and line numbers) should appear in the stack frames of the active threads shown in the Debug view. This is because the IDE automatically adds the search paths for any shared libraries to the launch configuration so it can find their debug symbols, which are stored in the same directory as the libraries.

For information on the debugging controls, see Debug perspective controls.