Debugging GTK critical warnings

Listen to this Post. Powered by iSpeech.org

Debugging GTK+ based applications can be tricky when GTK throws warnings and critical messages during execution.

To be able to catch those warnings, at the level of your own code, you need to run the application with the option –g-fatal-warnings in the debugger.

For instance:

# gdb yourapp

(gdb)  run –g-fatal-warnings

That´s it the app will stop at the first GTK warning where you´ll be able to verify the stacktrace and discover what caused it.

  • Share/Bookmark

About this entry