[HelpOnLanguages] [TitleIndex] [WordIndex]

DebuggingUsingGdb

1. Debugging the OmGui application using the Gnu Debugger (gdb)

These instructions should work for all versions of omgui. If neccessary install gdb first.

/!\ Note: Ubuntu and other debian derived distribution users can simply do:

sudo apt-get install gdb

To debug, move into your development source tree e.g.:

cd $HOME/dev/cpp/omgui1

Make sure that you have the binary built and ready to run. Then start gdb and tell it where your sources and binary are:

source src/
file ./omgui1

Now start the application:

run

Your application will start, though taking longer than usual to do so - this is normal. If you program crashes you can get a stacktrace using:

bt
}}

When you are finished your debugging session, quit like this:

{{{
q

2014-08-13 10:44