| gedit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum GeditDebugSection; #define DEBUG_VIEW #define DEBUG_SEARCH #define DEBUG_PRINT #define DEBUG_PREFS #define DEBUG_PLUGINS #define DEBUG_TAB #define DEBUG_DOCUMENT #define DEBUG_COMMANDS #define DEBUG_APP #define DEBUG_SESSION #define DEBUG_UTILS #define DEBUG_METADATA #define DEBUG_WINDOW #define DEBUG_LOADER #define DEBUG_SAVER #define DEBUG_PANEL #define DEBUG_DBUS void gedit_debug_init (void); void gedit_debug (GeditDebugSection section,const gchar *file,gint line,const gchar *function); void gedit_debug_message (GeditDebugSection section,const gchar *file,gint line,const gchar *function,const gchar *format,...);
typedef enum {
GEDIT_NO_DEBUG = 0,
GEDIT_DEBUG_VIEW = 1 << 0,
GEDIT_DEBUG_SEARCH = 1 << 1,
GEDIT_DEBUG_PRINT = 1 << 2,
GEDIT_DEBUG_PREFS = 1 << 3,
GEDIT_DEBUG_PLUGINS = 1 << 4,
GEDIT_DEBUG_TAB = 1 << 5,
GEDIT_DEBUG_DOCUMENT = 1 << 6,
GEDIT_DEBUG_COMMANDS = 1 << 7,
GEDIT_DEBUG_APP = 1 << 8,
GEDIT_DEBUG_SESSION = 1 << 9,
GEDIT_DEBUG_UTILS = 1 << 10,
GEDIT_DEBUG_METADATA = 1 << 11,
GEDIT_DEBUG_WINDOW = 1 << 12,
GEDIT_DEBUG_LOADER = 1 << 13,
GEDIT_DEBUG_SAVER = 1 << 14,
GEDIT_DEBUG_PANEL = 1 << 15,
GEDIT_DEBUG_DBUS = 1 << 16
} GeditDebugSection;
Enumeration of debug sections.
Debugging output for a section is enabled by setting an environment variable
of the same name. For example, setting the GEDIT_DEBUG_PLUGINS
environment variable enables all debugging output for the GEDIT_DEBUG_PLUGINS
section. Setting the special environment variable GEDIT_DEBUG
enables output for all sections.
void gedit_debug_init (void);
Initializes the debugging subsystem of Gedit.
The function checks for the existence of certain environment variables to
determine whether to enable output for a debug section. To enable output
for a specific debug section, set an environment variable of the same name;
e.g. to enable output for the GEDIT_DEBUG_PLUGINS section, set a
GEDIT_DEBUG_PLUGINS environment variable. To enable output
for all debug sections, set the GEDIT_DEBUG environment
variable.
This function must be called before any of the other debug functions are called. It must only be called once.
void gedit_debug (GeditDebugSection section,const gchar *file,gint line,const gchar *function);
If output for debug section section is enabled, then logs the trace
information file, line, and function.
|
Debug section. |
|
Name of the source file containing the call to gedit_debug(). |
|
Line number within the file named by file of the call to gedit_debug(). |
|
Name of the function that is calling gedit_debug(). |
void gedit_debug_message (GeditDebugSection section,const gchar *file,gint line,const gchar *function,const gchar *format,...);
If output for debug section section is enabled, then logs the trace
information file, line, and function along with the message obtained by
formatting format with the given format string arguments.
|
Debug section. |
|
Name of the source file containing the call to gedit_debug_message(). |
|
Line number within the file named by file of the call to gedit_debug_message(). |
|
Name of the function that is calling gedit_debug_message(). |
|
A g_vprintf() format string. |
|
The format string arguments. |