5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.Debugger.CallTraceViewer</h1> |
9 <h1>eric7.Debugger.CallTraceViewer</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the Call Trace viewer widget. |
11 Module implementing the Call Trace viewer widget. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#CallTraceViewer">CallTraceViewer</a></td> |
22 <td><a href="#CallTraceViewer">CallTraceViewer</a></td> |
25 <td>Class implementing the Call Trace viewer widget.</td> |
23 <td>Class implementing the Call Trace viewer widget.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
29 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
30 </table> |
32 </table> |
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="CallTraceViewer" ID="CallTraceViewer"></a> |
34 <a NAME="CallTraceViewer" ID="CallTraceViewer"></a> |
36 <h2>CallTraceViewer</h2> |
35 <h2>CallTraceViewer</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing the Call Trace viewer widget. |
37 Class implementing the Call Trace viewer widget. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Signals</h3> |
40 <h3>Signals</h3> |
42 <dl> |
41 <dl> |
43 |
42 |
44 <dt>sourceFile(str, int)</dt> |
43 <dt>sourceFile(str, int)</dt> |
45 <dd> |
44 <dd> |
118 <tr> |
115 <tr> |
119 <td><a href="#CallTraceViewer.setProjectMode">setProjectMode</a></td> |
116 <td><a href="#CallTraceViewer.setProjectMode">setProjectMode</a></td> |
120 <td>Public slot to set the call trace viewer to project mode.</td> |
117 <td>Public slot to set the call trace viewer to project mode.</td> |
121 </tr> |
118 </tr> |
122 </table> |
119 </table> |
|
120 |
123 <h3>Static Methods</h3> |
121 <h3>Static Methods</h3> |
124 |
122 <table> |
125 <table> |
123 <tr><td>None</td></tr> |
126 <tr><td>None</td></tr> |
124 </table> |
127 </table> |
125 |
128 |
126 |
129 <a NAME="CallTraceViewer.__init__" ID="CallTraceViewer.__init__"></a> |
127 <a NAME="CallTraceViewer.__init__" ID="CallTraceViewer.__init__"></a> |
130 <h4>CallTraceViewer (Constructor)</h4> |
128 <h4>CallTraceViewer (Constructor)</h4> |
131 <b>CallTraceViewer</b>(<i>debugServer, debugViewer, parent=None</i>) |
129 <b>CallTraceViewer</b>(<i>debugServer, debugViewer, parent=None</i>) |
132 |
|
133 <p> |
130 <p> |
134 Constructor |
131 Constructor |
135 </p> |
132 </p> |
|
133 |
136 <dl> |
134 <dl> |
137 |
135 |
138 <dt><i>debugServer</i> (DebugServer)</dt> |
136 <dt><i>debugServer</i> (DebugServer)</dt> |
139 <dd> |
137 <dd> |
140 reference to the debug server object |
138 reference to the debug server object |
149 </dd> |
147 </dd> |
150 </dl> |
148 </dl> |
151 <a NAME="CallTraceViewer.__addCallTraceInfo" ID="CallTraceViewer.__addCallTraceInfo"></a> |
149 <a NAME="CallTraceViewer.__addCallTraceInfo" ID="CallTraceViewer.__addCallTraceInfo"></a> |
152 <h4>CallTraceViewer.__addCallTraceInfo</h4> |
150 <h4>CallTraceViewer.__addCallTraceInfo</h4> |
153 <b>__addCallTraceInfo</b>(<i>isCall, fromFile, fromLine, fromFunction, toFile, toLine, toFunction, debuggerId, </i>) |
151 <b>__addCallTraceInfo</b>(<i>isCall, fromFile, fromLine, fromFunction, toFile, toLine, toFunction, debuggerId, </i>) |
154 |
|
155 <p> |
152 <p> |
156 Private method to add an entry to the call trace viewer. |
153 Private method to add an entry to the call trace viewer. |
157 </p> |
154 </p> |
|
155 |
158 <dl> |
156 <dl> |
159 |
157 |
160 <dt><i>isCall</i> (bool)</dt> |
158 <dt><i>isCall</i> (bool)</dt> |
161 <dd> |
159 <dd> |
162 flag indicating a 'call' |
160 flag indicating a 'call' |
191 </dd> |
189 </dd> |
192 </dl> |
190 </dl> |
193 <a NAME="CallTraceViewer.__clientExit" ID="CallTraceViewer.__clientExit"></a> |
191 <a NAME="CallTraceViewer.__clientExit" ID="CallTraceViewer.__clientExit"></a> |
194 <h4>CallTraceViewer.__clientExit</h4> |
192 <h4>CallTraceViewer.__clientExit</h4> |
195 <b>__clientExit</b>(<i>program, status, message, quiet, debuggerId</i>) |
193 <b>__clientExit</b>(<i>program, status, message, quiet, debuggerId</i>) |
196 |
|
197 <p> |
194 <p> |
198 Private slot to handle a debug client terminating. |
195 Private slot to handle a debug client terminating. |
199 </p> |
196 </p> |
|
197 |
200 <dl> |
198 <dl> |
201 |
199 |
202 <dt><i>program</i> (str)</dt> |
200 <dt><i>program</i> (str)</dt> |
203 <dd> |
201 <dd> |
204 name of the exited program |
202 name of the exited program |
221 </dd> |
219 </dd> |
222 </dl> |
220 </dl> |
223 <a NAME="CallTraceViewer.__setCallTraceEnabled" ID="CallTraceViewer.__setCallTraceEnabled"></a> |
221 <a NAME="CallTraceViewer.__setCallTraceEnabled" ID="CallTraceViewer.__setCallTraceEnabled"></a> |
224 <h4>CallTraceViewer.__setCallTraceEnabled</h4> |
222 <h4>CallTraceViewer.__setCallTraceEnabled</h4> |
225 <b>__setCallTraceEnabled</b>(<i>enabled</i>) |
223 <b>__setCallTraceEnabled</b>(<i>enabled</i>) |
226 |
|
227 <p> |
224 <p> |
228 Private slot to set the call trace enabled status. |
225 Private slot to set the call trace enabled status. |
229 </p> |
226 </p> |
|
227 |
230 <dl> |
228 <dl> |
231 |
229 |
232 <dt><i>enabled</i> (bool)</dt> |
230 <dt><i>enabled</i> (bool)</dt> |
233 <dd> |
231 <dd> |
234 flag indicating the new state |
232 flag indicating the new state |
235 </dd> |
233 </dd> |
236 </dl> |
234 </dl> |
237 <a NAME="CallTraceViewer.clear" ID="CallTraceViewer.clear"></a> |
235 <a NAME="CallTraceViewer.clear" ID="CallTraceViewer.clear"></a> |
238 <h4>CallTraceViewer.clear</h4> |
236 <h4>CallTraceViewer.clear</h4> |
239 <b>clear</b>(<i></i>) |
237 <b>clear</b>(<i></i>) |
240 |
|
241 <p> |
238 <p> |
242 Public slot to clear the call trace info. |
239 Public slot to clear the call trace info. |
243 </p> |
240 </p> |
|
241 |
244 <a NAME="CallTraceViewer.isCallTraceEnabled" ID="CallTraceViewer.isCallTraceEnabled"></a> |
242 <a NAME="CallTraceViewer.isCallTraceEnabled" ID="CallTraceViewer.isCallTraceEnabled"></a> |
245 <h4>CallTraceViewer.isCallTraceEnabled</h4> |
243 <h4>CallTraceViewer.isCallTraceEnabled</h4> |
246 <b>isCallTraceEnabled</b>(<i></i>) |
244 <b>isCallTraceEnabled</b>(<i></i>) |
247 |
|
248 <p> |
245 <p> |
249 Public method to get the state of the call trace function. |
246 Public method to get the state of the call trace function. |
250 </p> |
247 </p> |
|
248 |
251 <dl> |
249 <dl> |
252 <dt>Return:</dt> |
250 <dt>Return:</dt> |
253 <dd> |
251 <dd> |
254 flag indicating the state of the call trace function |
252 flag indicating the state of the call trace function |
255 </dd> |
253 </dd> |
279 </dd> |
277 </dd> |
280 </dl> |
278 </dl> |
281 <a NAME="CallTraceViewer.on_clearButton_clicked" ID="CallTraceViewer.on_clearButton_clicked"></a> |
279 <a NAME="CallTraceViewer.on_clearButton_clicked" ID="CallTraceViewer.on_clearButton_clicked"></a> |
282 <h4>CallTraceViewer.on_clearButton_clicked</h4> |
280 <h4>CallTraceViewer.on_clearButton_clicked</h4> |
283 <b>on_clearButton_clicked</b>(<i></i>) |
281 <b>on_clearButton_clicked</b>(<i></i>) |
284 |
|
285 <p> |
282 <p> |
286 Private slot to clear the call trace. |
283 Private slot to clear the call trace. |
287 </p> |
284 </p> |
|
285 |
288 <a NAME="CallTraceViewer.on_resizeButton_clicked" ID="CallTraceViewer.on_resizeButton_clicked"></a> |
286 <a NAME="CallTraceViewer.on_resizeButton_clicked" ID="CallTraceViewer.on_resizeButton_clicked"></a> |
289 <h4>CallTraceViewer.on_resizeButton_clicked</h4> |
287 <h4>CallTraceViewer.on_resizeButton_clicked</h4> |
290 <b>on_resizeButton_clicked</b>(<i></i>) |
288 <b>on_resizeButton_clicked</b>(<i></i>) |
291 |
|
292 <p> |
289 <p> |
293 Private slot to resize the columns of the call trace to their contents. |
290 Private slot to resize the columns of the call trace to their contents. |
294 </p> |
291 </p> |
|
292 |
295 <a NAME="CallTraceViewer.on_saveButton_clicked" ID="CallTraceViewer.on_saveButton_clicked"></a> |
293 <a NAME="CallTraceViewer.on_saveButton_clicked" ID="CallTraceViewer.on_saveButton_clicked"></a> |
296 <h4>CallTraceViewer.on_saveButton_clicked</h4> |
294 <h4>CallTraceViewer.on_saveButton_clicked</h4> |
297 <b>on_saveButton_clicked</b>(<i></i>) |
295 <b>on_saveButton_clicked</b>(<i></i>) |
298 |
|
299 <p> |
296 <p> |
300 Private slot to save the call trace info to a file. |
297 Private slot to save the call trace info to a file. |
301 </p> |
298 </p> |
|
299 |
302 <a NAME="CallTraceViewer.on_startTraceButton_clicked" ID="CallTraceViewer.on_startTraceButton_clicked"></a> |
300 <a NAME="CallTraceViewer.on_startTraceButton_clicked" ID="CallTraceViewer.on_startTraceButton_clicked"></a> |
303 <h4>CallTraceViewer.on_startTraceButton_clicked</h4> |
301 <h4>CallTraceViewer.on_startTraceButton_clicked</h4> |
304 <b>on_startTraceButton_clicked</b>(<i></i>) |
302 <b>on_startTraceButton_clicked</b>(<i></i>) |
305 |
|
306 <p> |
303 <p> |
307 Private slot to start call tracing. |
304 Private slot to start call tracing. |
308 </p> |
305 </p> |
|
306 |
309 <a NAME="CallTraceViewer.on_stopCheckBox_clicked" ID="CallTraceViewer.on_stopCheckBox_clicked"></a> |
307 <a NAME="CallTraceViewer.on_stopCheckBox_clicked" ID="CallTraceViewer.on_stopCheckBox_clicked"></a> |
310 <h4>CallTraceViewer.on_stopCheckBox_clicked</h4> |
308 <h4>CallTraceViewer.on_stopCheckBox_clicked</h4> |
311 <b>on_stopCheckBox_clicked</b>(<i>checked</i>) |
309 <b>on_stopCheckBox_clicked</b>(<i>checked</i>) |
312 |
|
313 <p> |
310 <p> |
314 Private slot to handle a click on the stop check box. |
311 Private slot to handle a click on the stop check box. |
315 </p> |
312 </p> |
|
313 |
316 <dl> |
314 <dl> |
317 |
315 |
318 <dt><i>checked</i> (bool)</dt> |
316 <dt><i>checked</i> (bool)</dt> |
319 <dd> |
317 <dd> |
320 state of the check box |
318 state of the check box |
321 </dd> |
319 </dd> |
322 </dl> |
320 </dl> |
323 <a NAME="CallTraceViewer.on_stopTraceButton_clicked" ID="CallTraceViewer.on_stopTraceButton_clicked"></a> |
321 <a NAME="CallTraceViewer.on_stopTraceButton_clicked" ID="CallTraceViewer.on_stopTraceButton_clicked"></a> |
324 <h4>CallTraceViewer.on_stopTraceButton_clicked</h4> |
322 <h4>CallTraceViewer.on_stopTraceButton_clicked</h4> |
325 <b>on_stopTraceButton_clicked</b>(<i></i>) |
323 <b>on_stopTraceButton_clicked</b>(<i></i>) |
326 |
|
327 <p> |
324 <p> |
328 Private slot to start call tracing. |
325 Private slot to start call tracing. |
329 </p> |
326 </p> |
|
327 |
330 <a NAME="CallTraceViewer.setProjectMode" ID="CallTraceViewer.setProjectMode"></a> |
328 <a NAME="CallTraceViewer.setProjectMode" ID="CallTraceViewer.setProjectMode"></a> |
331 <h4>CallTraceViewer.setProjectMode</h4> |
329 <h4>CallTraceViewer.setProjectMode</h4> |
332 <b>setProjectMode</b>(<i>enabled</i>) |
330 <b>setProjectMode</b>(<i>enabled</i>) |
333 |
|
334 <p> |
331 <p> |
335 Public slot to set the call trace viewer to project mode. |
332 Public slot to set the call trace viewer to project mode. |
336 </p> |
333 </p> |
337 <p> |
334 <p> |
338 In project mode the call trace info is shown with project relative |
335 In project mode the call trace info is shown with project relative |
339 path names. |
336 path names. |
340 </p> |
337 </p> |
|
338 |
341 <dl> |
339 <dl> |
342 |
340 |
343 <dt><i>enabled</i> (bool)</dt> |
341 <dt><i>enabled</i> (bool)</dt> |
344 <dd> |
342 <dd> |
345 flag indicating to enable the project mode |
343 flag indicating to enable the project mode |