Introduction To Debugging with GNATbench

Within a native GNATbench session, debugging is supported via GDB and the CDT interactive debugging perspective.

The screenshots in this section use the project "sdc.gpr" from the GPS tutorial. That project and its associated code can be found under the GNAT installation in the directory share/examples/gps/tutorial.

Preparing To Debug

Before you begin to debug your project, make sure your project has built properly and you can see the executable in the Navigator. In particular, make sure to apply the "-g" switch when building.

Other Resources

You can find more information about the CDT debug facilities in the C/C++ Developer User Guide in the Eclipse help system.