?? debugging.txt
字號:
The GLIB, GDK, and GTK libraries have extensive support fordebugging the library and your programs.The amount of debugging being done can be determined bothat run time and compile time.COMPILE TIME OPTIONS--------------------At compile time, the amount of debugging support included isdetermined by four macros:G_ENABLE_DEBUG If set, enable support for runtime checking.G_DISABLE_ASSERT If set, disable g_assert macrosG_DISABLE_CHECKS If set, disable the g_return_if_fail and g_return_val_if_fail macrosGTK_NO_CHECK_CASTS If set, don't check casts between different object typesWhether these macros are defined is controlled at configurationtime by the --enable-debug option.--enable-debug=minimum [default] Enable only inexpensive sanity checking sets GTK_NO_CHECK_CASTS--enable-debug=yes Enable all debugging support sets G_ENABLE_DEBUG--enable-debug=no (or --disable-debug) Disable all debugging support (fastest) sets G_DISABLE_ASSERT, G_DISABLE_CHECKS, and GTK_NO_CHECK_CASTSRUN TIME OPTIONS----------------At run time, if GTK+ was compiled with debugging enabled, differenttypes of debugging information can be printed out. This is controlledby the: GTK_DEBUG and GDK_DEBUG environment variables --gtk-debug and --gdk-debug command line options --gtk-no-debug and --gdk-no-debug command line optionsFirst the environment variables are applied, then the command lineoptions are applied in the order given on the command line.Each of these can either be the special value 'all', or a sequence of':' separated options. (case is ignored). The environment variablesand the --gtk-debug and --gdk-debug options add debugging options andthe --gtk-no-debug and --gdk-no-debug options remove them.As noted below, some of these are useful in application debugging, butmost are only interested to those debugging the librariesFor instance: GDK_DEBUG_FLAGS=misc:dnd testgtk --gdk-no-debug dnd --gdk-debug eventsruns testgtk with the 'misc' and 'events' debugging options. GTK_DEBUG --------- Application relevant options: 'objects' - Trace the creation and destruction of objects, print out a summary at program termination Options only interesting to library maintainers: GDK_DEBUG --------- Application relevant options: 'events' - Show all events received by GTK Options only interesting to library maintainers: 'misc' - Miscellaneous information 'dnd' - Information about drag-and-drop 'color-context' - Information about the internal workings of GdkColorContext 'xim' - Information about X Input Method support - Owen Taylor <owt1@cornell.edu> 98/02/19
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -