Documentation/Source/eric5.DebugClients.Python.DebugBase.html

changeset 3591
2f2a4a76dd22
parent 3018
70924c0bdaf1
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
86 </tr><tr> 86 </tr><tr>
87 <td><a href="#DebugBase.__skip_it">__skip_it</a></td> 87 <td><a href="#DebugBase.__skip_it">__skip_it</a></td>
88 <td>Private method to filter out debugger files.</td> 88 <td>Private method to filter out debugger files.</td>
89 </tr><tr> 89 </tr><tr>
90 <td><a href="#DebugBase.break_anywhere">break_anywhere</a></td> 90 <td><a href="#DebugBase.break_anywhere">break_anywhere</a></td>
91 <td>Reimplemented from bdb.py to do some special things.</td> 91 <td>Public method reimplemented from bdb.py to do some special things.</td>
92 </tr><tr> 92 </tr><tr>
93 <td><a href="#DebugBase.break_here">break_here</a></td> 93 <td><a href="#DebugBase.break_here">break_here</a></td>
94 <td>Reimplemented from bdb.py to fix the filename from the frame.</td> 94 <td>Public method reimplemented from bdb.py to fix the filename from the frame.</td>
95 </tr><tr> 95 </tr><tr>
96 <td><a href="#DebugBase.clear_watch">clear_watch</a></td> 96 <td><a href="#DebugBase.clear_watch">clear_watch</a></td>
97 <td>Public method to clear a watch expression.</td> 97 <td>Public method to clear a watch expression.</td>
98 </tr><tr> 98 </tr><tr>
99 <td><a href="#DebugBase.dispatch_exception">dispatch_exception</a></td> 99 <td><a href="#DebugBase.dispatch_exception">dispatch_exception</a></td>
100 <td>Reimplemented from bdb.py to always call user_exception.</td> 100 <td>Public method reimplemented from bdb.py to always call user_exception.</td>
101 </tr><tr> 101 </tr><tr>
102 <td><a href="#DebugBase.dispatch_line">dispatch_line</a></td> 102 <td><a href="#DebugBase.dispatch_line">dispatch_line</a></td>
103 <td>Reimplemented from bdb.py to do some special things.</td> 103 <td>Public method reimplemented from bdb.py to do some special things.</td>
104 </tr><tr> 104 </tr><tr>
105 <td><a href="#DebugBase.dispatch_return">dispatch_return</a></td> 105 <td><a href="#DebugBase.dispatch_return">dispatch_return</a></td>
106 <td>Reimplemented from bdb.py to handle passive mode cleanly.</td> 106 <td>Public method reimplemented from bdb.py to handle passive mode cleanly.</td>
107 </tr><tr> 107 </tr><tr>
108 <td><a href="#DebugBase.fix_frame_filename">fix_frame_filename</a></td> 108 <td><a href="#DebugBase.fix_frame_filename">fix_frame_filename</a></td>
109 <td>Public method used to fixup the filename for a given frame.</td> 109 <td>Public method used to fixup the filename for a given frame.</td>
110 </tr><tr> 110 </tr><tr>
111 <td><a href="#DebugBase.getCurrentFrame">getCurrentFrame</a></td> 111 <td><a href="#DebugBase.getCurrentFrame">getCurrentFrame</a></td>
113 </tr><tr> 113 </tr><tr>
114 <td><a href="#DebugBase.getCurrentFrameLocals">getCurrentFrameLocals</a></td> 114 <td><a href="#DebugBase.getCurrentFrameLocals">getCurrentFrameLocals</a></td>
115 <td>Public method to return the locals dictionary of the current frame.</td> 115 <td>Public method to return the locals dictionary of the current frame.</td>
116 </tr><tr> 116 </tr><tr>
117 <td><a href="#DebugBase.getEvent">getEvent</a></td> 117 <td><a href="#DebugBase.getEvent">getEvent</a></td>
118 <td>Public method to return the last debugger event.</td> 118 <td>Protected method to return the last debugger event.</td>
119 </tr><tr> 119 </tr><tr>
120 <td><a href="#DebugBase.getStack">getStack</a></td> 120 <td><a href="#DebugBase.getStack">getStack</a></td>
121 <td>Public method to get the stack.</td> 121 <td>Public method to get the stack.</td>
122 </tr><tr> 122 </tr><tr>
123 <td><a href="#DebugBase.get_break">get_break</a></td> 123 <td><a href="#DebugBase.get_break">get_break</a></td>
124 <td>Reimplemented from bdb.py to get the first breakpoint of a particular line.</td> 124 <td>Public method reimplemented from bdb.py to get the first breakpoint of a particular line.</td>
125 </tr><tr> 125 </tr><tr>
126 <td><a href="#DebugBase.get_watch">get_watch</a></td> 126 <td><a href="#DebugBase.get_watch">get_watch</a></td>
127 <td>Public method to get a watch expression.</td> 127 <td>Public method to get a watch expression.</td>
128 </tr><tr> 128 </tr><tr>
129 <td><a href="#DebugBase.go">go</a></td> 129 <td><a href="#DebugBase.go">go</a></td>
137 </tr><tr> 137 </tr><tr>
138 <td><a href="#DebugBase.setRecursionDepth">setRecursionDepth</a></td> 138 <td><a href="#DebugBase.setRecursionDepth">setRecursionDepth</a></td>
139 <td>Public method to determine the current recursion depth.</td> 139 <td>Public method to determine the current recursion depth.</td>
140 </tr><tr> 140 </tr><tr>
141 <td><a href="#DebugBase.set_continue">set_continue</a></td> 141 <td><a href="#DebugBase.set_continue">set_continue</a></td>
142 <td>Reimplemented from bdb.py to always get informed of exceptions.</td> 142 <td>Public method reimplemented from bdb.py to always get informed of exceptions.</td>
143 </tr><tr> 143 </tr><tr>
144 <td><a href="#DebugBase.set_quit">set_quit</a></td> 144 <td><a href="#DebugBase.set_quit">set_quit</a></td>
145 <td>Public method to quit.</td> 145 <td>Public method to quit.</td>
146 </tr><tr> 146 </tr><tr>
147 <td><a href="#DebugBase.set_trace">set_trace</a></td> 147 <td><a href="#DebugBase.set_trace">set_trace</a></td>
148 <td>Overridden method of bdb.py to do some special setup.</td> 148 <td>Public method reimplemented from bdb.py to do some special setup.</td>
149 </tr><tr> 149 </tr><tr>
150 <td><a href="#DebugBase.set_watch">set_watch</a></td> 150 <td><a href="#DebugBase.set_watch">set_watch</a></td>
151 <td>Public method to set a watch expression.</td> 151 <td>Public method to set a watch expression.</td>
152 </tr><tr> 152 </tr><tr>
153 <td><a href="#DebugBase.step">step</a></td> 153 <td><a href="#DebugBase.step">step</a></td>
155 </tr><tr> 155 </tr><tr>
156 <td><a href="#DebugBase.stepOut">stepOut</a></td> 156 <td><a href="#DebugBase.stepOut">stepOut</a></td>
157 <td>Public method to perform a step out of the current call.</td> 157 <td>Public method to perform a step out of the current call.</td>
158 </tr><tr> 158 </tr><tr>
159 <td><a href="#DebugBase.stop_here">stop_here</a></td> 159 <td><a href="#DebugBase.stop_here">stop_here</a></td>
160 <td>Reimplemented to filter out debugger files.</td> 160 <td>Public method reimplemented to filter out debugger files.</td>
161 </tr><tr> 161 </tr><tr>
162 <td><a href="#DebugBase.trace_dispatch">trace_dispatch</a></td> 162 <td><a href="#DebugBase.trace_dispatch">trace_dispatch</a></td>
163 <td>Reimplemented from bdb.py to do some special things.</td> 163 <td>Public method reimplemented from bdb.py to do some special things.</td>
164 </tr><tr> 164 </tr><tr>
165 <td><a href="#DebugBase.user_exception">user_exception</a></td> 165 <td><a href="#DebugBase.user_exception">user_exception</a></td>
166 <td>Reimplemented to report an exception to the debug server.</td> 166 <td>Public method reimplemented to report an exception to the debug server.</td>
167 </tr><tr> 167 </tr><tr>
168 <td><a href="#DebugBase.user_line">user_line</a></td> 168 <td><a href="#DebugBase.user_line">user_line</a></td>
169 <td>Reimplemented to handle the program about to execute a particular line.</td> 169 <td>Public method reimplemented to handle the program about to execute a particular line.</td>
170 </tr><tr> 170 </tr><tr>
171 <td><a href="#DebugBase.user_return">user_return</a></td> 171 <td><a href="#DebugBase.user_return">user_return</a></td>
172 <td>Reimplemented to report program termination to the debug server.</td> 172 <td>Public method reimplemented to report program termination to the debug server.</td>
173 </tr> 173 </tr>
174 </table> 174 </table>
175 <h3>Static Methods</h3> 175 <h3>Static Methods</h3>
176 <table> 176 <table>
177 <tr><td>None</td></tr> 177 <tr><td>None</td></tr>
276 </dd> 276 </dd>
277 </dl><a NAME="DebugBase.break_anywhere" ID="DebugBase.break_anywhere"></a> 277 </dl><a NAME="DebugBase.break_anywhere" ID="DebugBase.break_anywhere"></a>
278 <h4>DebugBase.break_anywhere</h4> 278 <h4>DebugBase.break_anywhere</h4>
279 <b>break_anywhere</b>(<i>frame</i>) 279 <b>break_anywhere</b>(<i>frame</i>)
280 <p> 280 <p>
281 Reimplemented from bdb.py to do some special things. 281 Public method reimplemented from bdb.py to do some special things.
282 </p><p> 282 </p><p>
283 These speciality is to fix the filename from the frame 283 These speciality is to fix the filename from the frame
284 (see fix_frame_filename for more info). 284 (see fix_frame_filename for more info).
285 </p><dl> 285 </p><dl>
286 <dt><i>frame</i></dt> 286 <dt><i>frame</i></dt>
294 </dd> 294 </dd>
295 </dl><a NAME="DebugBase.break_here" ID="DebugBase.break_here"></a> 295 </dl><a NAME="DebugBase.break_here" ID="DebugBase.break_here"></a>
296 <h4>DebugBase.break_here</h4> 296 <h4>DebugBase.break_here</h4>
297 <b>break_here</b>(<i>frame</i>) 297 <b>break_here</b>(<i>frame</i>)
298 <p> 298 <p>
299 Reimplemented from bdb.py to fix the filename from the frame. 299 Public method reimplemented from bdb.py to fix the filename from the
300 frame.
300 </p><p> 301 </p><p>
301 See fix_frame_filename for more info. 302 See fix_frame_filename for more info.
302 </p><dl> 303 </p><dl>
303 <dt><i>frame</i></dt> 304 <dt><i>frame</i></dt>
304 <dd> 305 <dd>
321 </dd> 322 </dd>
322 </dl><a NAME="DebugBase.dispatch_exception" ID="DebugBase.dispatch_exception"></a> 323 </dl><a NAME="DebugBase.dispatch_exception" ID="DebugBase.dispatch_exception"></a>
323 <h4>DebugBase.dispatch_exception</h4> 324 <h4>DebugBase.dispatch_exception</h4>
324 <b>dispatch_exception</b>(<i>frame, arg</i>) 325 <b>dispatch_exception</b>(<i>frame, arg</i>)
325 <p> 326 <p>
326 Reimplemented from bdb.py to always call user_exception. 327 Public method reimplemented from bdb.py to always call user_exception.
327 </p><dl> 328 </p><dl>
328 <dt><i>frame</i></dt> 329 <dt><i>frame</i></dt>
329 <dd> 330 <dd>
330 The current stack frame. 331 The current stack frame.
331 </dd><dt><i>arg</i></dt> 332 </dd><dt><i>arg</i></dt>
344 </dd> 345 </dd>
345 </dl><a NAME="DebugBase.dispatch_line" ID="DebugBase.dispatch_line"></a> 346 </dl><a NAME="DebugBase.dispatch_line" ID="DebugBase.dispatch_line"></a>
346 <h4>DebugBase.dispatch_line</h4> 347 <h4>DebugBase.dispatch_line</h4>
347 <b>dispatch_line</b>(<i>frame</i>) 348 <b>dispatch_line</b>(<i>frame</i>)
348 <p> 349 <p>
349 Reimplemented from bdb.py to do some special things. 350 Public method reimplemented from bdb.py to do some special things.
350 </p><p> 351 </p><p>
351 This speciality is to check the connection to the debug server 352 This speciality is to check the connection to the debug server
352 for new events (i.e. new breakpoints) while we are going through 353 for new events (i.e. new breakpoints) while we are going through
353 the code. 354 the code.
354 </p><dl> 355 </p><dl>
368 </dd> 369 </dd>
369 </dl><a NAME="DebugBase.dispatch_return" ID="DebugBase.dispatch_return"></a> 370 </dl><a NAME="DebugBase.dispatch_return" ID="DebugBase.dispatch_return"></a>
370 <h4>DebugBase.dispatch_return</h4> 371 <h4>DebugBase.dispatch_return</h4>
371 <b>dispatch_return</b>(<i>frame, arg</i>) 372 <b>dispatch_return</b>(<i>frame, arg</i>)
372 <p> 373 <p>
373 Reimplemented from bdb.py to handle passive mode cleanly. 374 Public method reimplemented from bdb.py to handle passive mode cleanly.
374 </p><dl> 375 </p><dl>
375 <dt><i>frame</i></dt> 376 <dt><i>frame</i></dt>
376 <dd> 377 <dd>
377 The current stack frame. 378 The current stack frame.
378 </dd><dt><i>arg</i></dt> 379 </dd><dt><i>arg</i></dt>
437 </dd> 438 </dd>
438 </dl><a NAME="DebugBase.getEvent" ID="DebugBase.getEvent"></a> 439 </dl><a NAME="DebugBase.getEvent" ID="DebugBase.getEvent"></a>
439 <h4>DebugBase.getEvent</h4> 440 <h4>DebugBase.getEvent</h4>
440 <b>getEvent</b>(<i></i>) 441 <b>getEvent</b>(<i></i>)
441 <p> 442 <p>
442 Public method to return the last debugger event. 443 Protected method to return the last debugger event.
443 </p><dl> 444 </p><dl>
444 <dt>Returns:</dt> 445 <dt>Returns:</dt>
445 <dd> 446 <dd>
446 last debugger event (string) 447 last debugger event (string)
447 </dd> 448 </dd>
458 </dd> 459 </dd>
459 </dl><a NAME="DebugBase.get_break" ID="DebugBase.get_break"></a> 460 </dl><a NAME="DebugBase.get_break" ID="DebugBase.get_break"></a>
460 <h4>DebugBase.get_break</h4> 461 <h4>DebugBase.get_break</h4>
461 <b>get_break</b>(<i>filename, lineno</i>) 462 <b>get_break</b>(<i>filename, lineno</i>)
462 <p> 463 <p>
463 Reimplemented from bdb.py to get the first breakpoint of a particular 464 Public method reimplemented from bdb.py to get the first breakpoint of
464 line. 465 a particular line.
465 </p><p> 466 </p><p>
466 Because eric5 supports only one breakpoint per line, this overwritten 467 Because eric5 supports only one breakpoint per line, this overwritten
467 method will return this one and only breakpoint. 468 method will return this one and only breakpoint.
468 </p><dl> 469 </p><dl>
469 <dt><i>filename</i></dt> 470 <dt><i>filename</i></dt>
549 </dd> 550 </dd>
550 </dl><a NAME="DebugBase.set_continue" ID="DebugBase.set_continue"></a> 551 </dl><a NAME="DebugBase.set_continue" ID="DebugBase.set_continue"></a>
551 <h4>DebugBase.set_continue</h4> 552 <h4>DebugBase.set_continue</h4>
552 <b>set_continue</b>(<i>special</i>) 553 <b>set_continue</b>(<i>special</i>)
553 <p> 554 <p>
554 Reimplemented from bdb.py to always get informed of exceptions. 555 Public method reimplemented from bdb.py to always get informed of
556 exceptions.
555 </p><dl> 557 </p><dl>
556 <dt><i>special</i></dt> 558 <dt><i>special</i></dt>
557 <dd> 559 <dd>
558 flag indicating a special continue operation 560 flag indicating a special continue operation
559 </dd> 561 </dd>
566 It wraps call to bdb to clear the current frame properly. 568 It wraps call to bdb to clear the current frame properly.
567 </p><a NAME="DebugBase.set_trace" ID="DebugBase.set_trace"></a> 569 </p><a NAME="DebugBase.set_trace" ID="DebugBase.set_trace"></a>
568 <h4>DebugBase.set_trace</h4> 570 <h4>DebugBase.set_trace</h4>
569 <b>set_trace</b>(<i>frame=None</i>) 571 <b>set_trace</b>(<i>frame=None</i>)
570 <p> 572 <p>
571 Overridden method of bdb.py to do some special setup. 573 Public method reimplemented from bdb.py to do some special setup.
572 </p><dl> 574 </p><dl>
573 <dt><i>frame</i></dt> 575 <dt><i>frame</i></dt>
574 <dd> 576 <dd>
575 frame to start debugging from 577 frame to start debugging from
576 </dd> 578 </dd>
605 Public method to perform a step out of the current call. 607 Public method to perform a step out of the current call.
606 </p><a NAME="DebugBase.stop_here" ID="DebugBase.stop_here"></a> 608 </p><a NAME="DebugBase.stop_here" ID="DebugBase.stop_here"></a>
607 <h4>DebugBase.stop_here</h4> 609 <h4>DebugBase.stop_here</h4>
608 <b>stop_here</b>(<i>frame</i>) 610 <b>stop_here</b>(<i>frame</i>)
609 <p> 611 <p>
610 Reimplemented to filter out debugger files. 612 Public method reimplemented to filter out debugger files.
611 </p><p> 613 </p><p>
612 Tracing is turned off for files that are part of the 614 Tracing is turned off for files that are part of the
613 debugger that are called from the application being debugged. 615 debugger that are called from the application being debugged.
614 </p><dl> 616 </p><dl>
615 <dt><i>frame</i></dt> 617 <dt><i>frame</i></dt>
623 </dd> 625 </dd>
624 </dl><a NAME="DebugBase.trace_dispatch" ID="DebugBase.trace_dispatch"></a> 626 </dl><a NAME="DebugBase.trace_dispatch" ID="DebugBase.trace_dispatch"></a>
625 <h4>DebugBase.trace_dispatch</h4> 627 <h4>DebugBase.trace_dispatch</h4>
626 <b>trace_dispatch</b>(<i>frame, event, arg</i>) 628 <b>trace_dispatch</b>(<i>frame, event, arg</i>)
627 <p> 629 <p>
628 Reimplemented from bdb.py to do some special things. 630 Public method reimplemented from bdb.py to do some special things.
629 </p><p> 631 </p><p>
630 This specialty is to check the connection to the debug server 632 This specialty is to check the connection to the debug server
631 for new events (i.e. new breakpoints) while we are going through 633 for new events (i.e. new breakpoints) while we are going through
632 the code. 634 the code.
633 </p><dl> 635 </p><dl>
648 </dd> 650 </dd>
649 </dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a> 651 </dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a>
650 <h4>DebugBase.user_exception</h4> 652 <h4>DebugBase.user_exception</h4>
651 <b>user_exception</b>(<i>frame, (exctype, excval, exctb), unhandled=0</i>) 653 <b>user_exception</b>(<i>frame, (exctype, excval, exctb), unhandled=0</i>)
652 <p> 654 <p>
653 Reimplemented to report an exception to the debug server. 655 Public method reimplemented to report an exception to the debug server.
654 </p><dl> 656 </p><dl>
655 <dt><i>frame</i></dt> 657 <dt><i>frame</i></dt>
656 <dd> 658 <dd>
657 the frame object 659 the frame object
658 </dd><dt><i>exctype</i></dt> 660 </dd><dt><i>exctype</i></dt>
670 </dd> 672 </dd>
671 </dl><a NAME="DebugBase.user_line" ID="DebugBase.user_line"></a> 673 </dl><a NAME="DebugBase.user_line" ID="DebugBase.user_line"></a>
672 <h4>DebugBase.user_line</h4> 674 <h4>DebugBase.user_line</h4>
673 <b>user_line</b>(<i>frame</i>) 675 <b>user_line</b>(<i>frame</i>)
674 <p> 676 <p>
675 Reimplemented to handle the program about to execute a particular line. 677 Public method reimplemented to handle the program about to execute a
678 particular line.
676 </p><dl> 679 </p><dl>
677 <dt><i>frame</i></dt> 680 <dt><i>frame</i></dt>
678 <dd> 681 <dd>
679 the frame object 682 the frame object
680 </dd> 683 </dd>
681 </dl><a NAME="DebugBase.user_return" ID="DebugBase.user_return"></a> 684 </dl><a NAME="DebugBase.user_return" ID="DebugBase.user_return"></a>
682 <h4>DebugBase.user_return</h4> 685 <h4>DebugBase.user_return</h4>
683 <b>user_return</b>(<i>frame, retval</i>) 686 <b>user_return</b>(<i>frame, retval</i>)
684 <p> 687 <p>
685 Reimplemented to report program termination to the debug server. 688 Public method reimplemented to report program termination to the
689 debug server.
686 </p><dl> 690 </p><dl>
687 <dt><i>frame</i></dt> 691 <dt><i>frame</i></dt>
688 <dd> 692 <dd>
689 the frame object 693 the frame object
690 </dd><dt><i>retval</i></dt> 694 </dd><dt><i>retval</i></dt>

eric ide

mercurial