Next: Preamble and Postamble Up: Writing GNUstep Makefiles Previous: A first App

Debugging an Application

Debugging an application is quite simple. You compile it with debugging enabled, as in
make debug=yes

The application directory is then created with a different name: debug is appended instead of app (again, this allows you to keep both the debug and not-debug versions at the same time). In the example, the application directory would be called PanelTest.debug.

To debug the application, use debugapp instead of openapp:

debugapp PanelTest.debug
This will run gdb (the GNU debugger) on the executable setting everything ready for debugging.



Nicola Pero 2000-10-12