Prompts the user with
[E]xit, [H]alt, show [S]tack trace or [P]roceed.
This function is intended to be used for debugging use only.
The following example shows how it can be used together with
the glib.global.log functions.
If "Exit" is selected, the application terminates with a call
to _exit(0).
If "Stack" trace is selected, glib.global.onErrorStackTrace is called.
This invokes gdb, which attaches to the current process and shows
a stack trace. The prompt is then shown again.
the program name, needed by gdb for the "Stack trace"
option. If prg_name is null, glib.global.getPrgname is called to get
the program name (which will work correctly if gdk.global.init_ or
gtk.global.init_ has been called)
Prompts the user with [E]xit, [H]alt, show [S]tack trace or [P]roceed. This function is intended to be used for debugging use only. The following example shows how it can be used together with the glib.global.log functions.
If "Exit" is selected, the application terminates with a call to _exit(0).
If "Stack" trace is selected, glib.global.onErrorStackTrace is called. This invokes gdb, which attaches to the current process and shows a stack trace. The prompt is then shown again.
If "Proceed" is selected, the function returns.
This function may cause different actions on non-UNIX platforms.
On Windows consider using the G_DEBUGGER environment variable (see Running GLib Applications) and calling glib.global.onErrorStackTrace instead.