1 <chapter id="cha-debugging">
2 <title>Debugging</title>
4 GStreamer has an extensive set of debugging tools for
9 <title>Command line options</title>
11 Applications using the GStreamer libraries accept the following set
12 of command line argruments to enable the debugging system.
19 <option>--gst-debug-mask=<replaceable>mask</replaceable></option>
20 Sets the mask for the debugging output.
25 <option>--gst-info-mask=<replaceable>mask</replaceable></option>
26 Sets the mask for the info output.
31 <option>--gst-mask=<replaceable>mask</replaceable></option>
32 Sets the mask for the info *and* the debug output.
37 <option>--gst-mask-help</option>
38 Print out the meaning of gst-mask-* values.
43 <option>--gst-plugin-spew</option>
44 Enable printout of errors while loading GST plugins.
49 <option>--gst-plugin-path=<replaceable>PATH</replaceable></option>
50 Add a directory to the plugin search path.
55 <option>--help</option> Print the a short desciption of the
62 The following table gives an overview of the mask values and their meaning. (enabled) means
63 that the corresponding flag is set by default. This table is available to any GStreamer
64 application by the --gst-mask-help option.
67 Mask (to be OR'ed) info/debug FLAGS
68 --------------------------------------------------------
69 0x00000001 (enabled)/ GST_INIT
70 0x00000002 / COTHREADS
71 0x00000004 / COTHREAD_SWITCH
73 0x00000010 / AUTOPLUG_ATTEMPT
74 0x00000020 / PARENTAGE
77 0x00000100 / SCHEDULING
78 0x00000200 / OPERATION
82 0x00002000 / ELEMENT_PADS
83 0x00004000 / ELEMENT_FACTORY
86 0x00020000 / PLUGIN_LOADING
87 0x00040000 / PLUGIN_ERRORS
88 0x00080000 / PLUGIN_INFO
89 0x00100000 / PROPERTIES
93 0x01000000 / NEGOTIATION
94 0x02000000 / REFCOUNTING
98 <title>Adding a custom debug handler</title>