2 <!DOCTYPE book PUBLIC
"-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"
4 <!ENTITY kdebugdialog
"<application>KDebugDialog</application>">
5 <!ENTITY kappname
"&kdebugdialog;">
6 <!ENTITY % addindex
"IGNORE">
7 <!ENTITY % English
"INCLUDE" > <!-- change language only here -->
12 <book lang=
"&language;">
14 <title>The
&kdebugdialog; Handbook
</title>
17 <author>&David.Faure; &David.Faure.mail;
</author>
18 <!-- TRANS:ROLES_OF_TRANSLATORS -->
21 <date>2001-
02-
13</date>
22 <releaseinfo>0.03.00</releaseinfo>
25 <para>This document describes
&kdebugdialog;.
</para>
29 <keyword>KDE
</keyword>
30 <keyword>KDebugdialog
</keyword>
34 <chapter id=
"Introduction">
35 <title>What is
&kdebugdialog;?
</title>
37 <para>It is a dialog box for managing diagnostic messages at runtime.
40 <para>If you simply start
<command>kdebugdialog
</command>, you will
41 see a list of
<quote>areas
</quote>, that can be disabled or enabled. A
42 <function>kDebug(area)
</function> call in the code will show
43 something in the debug output only if the area is enabled.
</para>
45 <note><para>Note that kWarning, kError and kFatal always appear,
46 they are NOT controlled by this setting.
</para></note>
50 <term><guilabel>Area
</guilabel></term>
52 <para>The areas which should only be output. Every message
53 that is not mentioned here will simply not be output (unless
54 this field remains empty, which is the default, and means that all
55 messages should be output). You can enter several areas
56 separated by commas here, and you can also use area ranges with
57 the syntax start-end. Thus a valid entry could be:
58 117,
214-
289,
356-
359,
221. Do not use whitespaces.
</para>
63 <para>If you start
<command>kdebugdialog
</command>
64 <option>--fullmode
</option>, then for every severity level you can
65 define separately what should be done with the diagnostic messages of
66 that level, and the same for each debug area.
</para>
68 <para>In full mode, first you should select the debug area you are
69 interested in from the drop down box at the top.
</para>
71 <para>You may independently set the output for various types of
75 <listitem><para><guilabel>Information
</guilabel></para></listitem>
76 <listitem><para><guilabel>Warning
</guilabel></para></listitem>
77 <listitem><para><guilabel>Error
</guilabel></para></listitem>
78 <listitem><para><guilabel>Fatal Error
</guilabel></para></listitem>
81 <para>For each of these types, you can set the following:
</para>
85 <term><guilabel>Output to:
</guilabel></term>
87 <para>In this Combobox, you can choose where the messages
88 should be output. The choices are:
<quote>File
</quote>,
<quote>Message
89 Box
</quote>,
<quote>Shell
</quote> (meaning stderr) and
90 <quote>Syslog
</quote>. Please do not direct fatal messages to syslog
91 unless you are the system administrator yourself. The default is
92 <quote>Message Box
</quote>.
</para>
97 <term><guilabel>Filename:
</guilabel></term>
98 <listitem><para>This is only enabled when you have chosen
99 <quote>File
</quote> as the output and provides the name of that file
100 (which is interpreted as relative to the current folder). The
101 default is
<filename>kdebug.dbg
</filename>.
</para>
106 <para>Apart from this, you can also tick the check box
<guilabel>Abort
107 on fatal errors
</guilabel>. In this case, if a diagnostic message with
108 the severity level
<computeroutput>KDEBUG_FATAL
</computeroutput> is
109 output, the application aborts with a SIGABRT after outputting the
112 <para>When you close the dialog by pressing
<guibutton>OK
</guibutton>,
113 your entries apply immediately and are saved in
114 <filename>kdebugrc
</filename>. When you press
115 <guibutton>Cancel
</guibutton>, your entries are discarded and the old
116 ones are restored.
</para>
118 <para>Credits to Kalle Dalheimer for the original version of
119 &kdebugdialog;</para>
121 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
127 &documentation.index;
133 sgml-general-insert-case: lower