1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
<?xml version="1.0" encoding="UTF-8" ?>
<sect1 id="debugging-3-2">
<sect1info>
<title>Debugging in &quantaplus;</title>
<authorgroup>
<author>
<firstname>Christopher</firstname>
<surname>Hornbaker</surname>
<affiliation>
<address><email>chrishornbaker@earthlink.net</email></address>
</affiliation>
</author>
<author>
<firstname>Linus</firstname>
<surname>McCabe</surname>
<affiliation>
<address><email>Linus@McCabe.nu</email></address>
</affiliation>
</author>
<!-- TRANS:ROLES_OF_TRANSLATORS -->
</authorgroup>
</sect1info>
<title>Debugging in &quantaplus;</title>
<sect2 id="php-debugging-3-2">
<title>Using the &PHP; Debugger</title>
<para>
With &quantaplus; version 3.3, the debugger handling was reimplemented.
The support for the now obsolete &PHP; (3) builtin debugger and was dropped,
as was the support for the dbg debugger. Instead, a general debug plugin system
was developed, to allow different plugin implementations.
</para>
<para>
Currently only one plugin is available which adds support to use &gubed; with
&quantaplus;.
</para>
<para>
To use a debugger for your project, open the project settings and chose a suitable
debugger plugin. To alter debugger specific settings, press the 'Options' button
next to the debugger plugin drop down.
</para>
<sect3 id="php-debuggin-3-2-general">
<title>General usage</title>
<para>
Once a project has a debugger activated, a few additional items will appear in the
&quantaplus; user interface:
</para>
<variablelist>
<varlistentry>
<term>Debugger menu</term>
<listitem>
<para>
A new menu will appear where you can reach most of the debugger functionality.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Debugger toolbar</term>
<listitem>
<para>
A toolbar with access to the most common debugging commands.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Variables toolview</term>
<listitem>
<para>
A toolview where the contents of watched variables is showed. Appears in the left dock by default.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Breakpoints toolview</term>
<listitem>
<para>
A toolview where all the breakpoints, line and conditional, are listed. Appears in the bottom dock by default.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Debug Output toolview</term>
<listitem>
<para>
A toolview where the output (as in HTML) of the debugger is shown. Appears in the bottom dock by default.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
Depending on what the debugger plugin supports, all or a subset of the following functionality will be available.
</para>
<variablelist>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Session</guimenuitem>
<guimenuitem>Start Session</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
This action is used to connect to the debugger if that is required, or tell the plugin to start listening for debug requests.
This action is triggered by default when a project using a debugger is opened, so usually you don't need to care about it.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Session</guimenuitem>
<guimenuitem>End Session</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
The opposite of
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Session</guimenuitem>
<guimenuitem>Start Session</guimenuitem>
</menuchoice>. Closes a connection to the debugger or stops listening for requests.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Send HTTP Request</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Sends a HTTP request to the server to initiate a debug request. Using this action is equivalent to
using a browser to look at the current document. The output of the request ends up in the Debug
Output dock.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Pause</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Pauses a running script
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Run</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to start executing the script and send information about watched variables and current
line of execution as it goes along. If this is done while a script is paused, execution will proceed. If it's done
before a debug request is initiated, the script will start running as soon as the request is initiated.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Leap</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to start executing the script without sending information about watched variables and current
line of execution. If this is done while a script is paused, execution will proceed. If it's done
before a debug request is initiated, the script will start leaping as soon as the request is initiated.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Step</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to execute the next instruction in the script, without stepping into functions or inclusions.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Step Into</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to execute the next instruction in the script, stepping into functions or inclusions if possible.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Step Out</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to execute until it escapes the current function.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Skip</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to skip the next instruction and proceed to the next one as if the current one didn't exist.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Execution</guimenuitem>
<guimenuitem>Kill</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Tells the debugger to kill the currently running script.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Breakpoints</guimenuitem>
<guimenuitem>Break when...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Opens a dialog where you can specify conditional breakpoints.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Breakpoints</guimenuitem>
<guimenuitem>Toggle breakpoint</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Toggles a line breakpoint at the line of the cursor in the current line
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Breakpoints</guimenuitem>
<guimenuitem>Clear breakpoints</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Clears all the breakpoints.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Variables</guimenuitem>
<guimenuitem>Watch variable</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Opens a dialog where you can enter a variable or expression you wish to watch. The value of the watch will appear
in the variables tool view.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Debug</guimenu>
<guimenuitem>Variables</guimenuitem>
<guimenuitem>Set value of variable</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
Opens a dialog where you can enter a variable and a new value for it.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
<sect2 id="kxsldbg-debugging-3-2">
<title>Using &kxsl;, the &XSL; Debugger</title>
<para>
&kxsl; is the creation of Keith Isdale, as is this section of the
documentation. &kxsl; is a &kde; front-end and a KPart to
<command>xsldbg</command>, which you can find at
http://xsldbg.sf.net along with many other works by
Keith.
</para>
<para>
To start &kxsl;, select
<menuchoice>
<guimenu>Plugins</guimenu>
<guimenuitem>&kxsl;</guimenuitem>
</menuchoice>.
</para>
<para>
Please refer to the &kxsl; documentation for further information
regarding its usage.
</para>
</sect2>
</sect1>
|