GSK Reference Manual | ||||
---|---|---|---|---|
Runtime Toggled Debug LoggingRuntime Toggled Debug Logging — methods to quickly turn logging on and off for portions of GSK. |
enum GskDebugFlags; extern const gboolean gsk_debugging_on; void gsk_debug_set_flags (GskDebugFlags flags); void gsk_debug_add_flags (GskDebugFlags flags); extern GskDebugFlags gsk_debug_flags;
These functions allow you to programmitcally set the GSK debugging flags. Usually, one sets these at runtime instead, by using the --gsk-debug=FLAGS command-line argument to your program.
In any event, GSK's debugging facilities are only available if GSK itself was configured with gsk-debug support, by specifying [--enable-gsk-debug] to GSK's configure script.
typedef enum { GSK_DEBUG_IO = (1<<0), GSK_DEBUG_STREAM = (1<<1), GSK_DEBUG_STREAM_LISTENER = (1<<2), GSK_DEBUG_STREAM_DATA = (1<<3), GSK_DEBUG_LIFETIME = (1<<4), GSK_DEBUG_MAIN_LOOP = (1<<5), GSK_DEBUG_DNS = (1<<6), GSK_DEBUG_HOOK = (1<<7), GSK_DEBUG_SSL = (1<<8), GSK_DEBUG_HTTP = (1<<9), GSK_DEBUG_FTP = (1<<10), GSK_DEBUG_REQUEST = (1<<11), GSK_DEBUG_FD = (1<<12), GSK_DEBUG_ALL = 0xffffffff } GskDebugFlags;
Flags which may be turned on to print debugging messages about them.
extern const gboolean gsk_debugging_on;
Whether debugging is on.
This corresponds with whether GSK's <program>configure</program> script was run with the [--enable-gsk-debug] option.
void gsk_debug_set_flags (GskDebugFlags flags);
Set which types of debug logs to emit.
flags : |
debug bits to start logging. |
void gsk_debug_add_flags (GskDebugFlags flags);
Add new types of debug logs to emit.
flags : |
debug bits to start logging. |