I’m developing GTK apps on Windows 10, and often get random crashes. Of course, because of Murphy’s law, everything works fine when I run from the debugger
I saw that very interesting environment variable G_DEBUGGER in the docs, seems it can automatically attach gdb in case of crash. Anyone knows how to define it properly?
Thanks!
Sadly it’s not exactly what I was looking for (my fault, I was not precise enough in my question), I was interested in what value I should use for the G_DEBUGGER variable.
The doc says the command shall contain %p and %e placeholders, I tested this command:
G_DEBUGGER='gdb -p %p -ex "signal %e"'
but the way I use %e seems incorrect because when gdb starts I see the warning:
Only signals 1-15 are valid as numeric signals.
Use "info signals" for a list of symbolic signals.
So my current point is how to use the signal %e to notify back GLib as described in the doc?