Debugging GTK critical warnings
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.
About this entry
You’re currently reading “Debugging GTK critical warnings,” an entry on Miguel Miranda de Mattos – Software development blog
- Published:
- Sunday, May 23rd, 2010 at 2:44 am
- Author:
- mmmattos
- Category:
- programming languages, software development
No comments
Jump to comment form | comments rss | trackback uri