89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#DebugBase.__skip_it">__skip_it</a></td> |
90 <td><a href="#DebugBase.__skip_it">__skip_it</a></td> |
91 <td>Private method to filter out debugger files.</td> |
91 <td>Private method to filter out debugger files.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#DebugBase.break_anywhere">break_anywhere</a></td> |
93 <td><a href="#DebugBase.break_anywhere">break_anywhere</a></td> |
94 <td>Reimplemented from bdb.py to do some special things.</td> |
94 <td>Public method reimplemented from bdb.py to do some special things.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#DebugBase.break_here">break_here</a></td> |
96 <td><a href="#DebugBase.break_here">break_here</a></td> |
97 <td>Reimplemented from bdb.py to fix the filename from the frame.</td> |
97 <td>Public method reimplemented from bdb.py to fix the filename from the frame.</td> |
98 </tr><tr> |
98 </tr><tr> |
99 <td><a href="#DebugBase.clear_watch">clear_watch</a></td> |
99 <td><a href="#DebugBase.clear_watch">clear_watch</a></td> |
100 <td>Public method to clear a watch expression.</td> |
100 <td>Public method to clear a watch expression.</td> |
101 </tr><tr> |
101 </tr><tr> |
102 <td><a href="#DebugBase.dispatch_exception">dispatch_exception</a></td> |
102 <td><a href="#DebugBase.dispatch_exception">dispatch_exception</a></td> |
103 <td>Reimplemented from bdb.py to always call user_exception.</td> |
103 <td>Public method reimplemented from bdb.py to always call user_exception.</td> |
104 </tr><tr> |
104 </tr><tr> |
105 <td><a href="#DebugBase.dispatch_line">dispatch_line</a></td> |
105 <td><a href="#DebugBase.dispatch_line">dispatch_line</a></td> |
106 <td>Reimplemented from bdb.py to do some special things.</td> |
106 <td>Public method reimplemented from bdb.py to do some special things.</td> |
107 </tr><tr> |
107 </tr><tr> |
108 <td><a href="#DebugBase.dispatch_return">dispatch_return</a></td> |
108 <td><a href="#DebugBase.dispatch_return">dispatch_return</a></td> |
109 <td>Reimplemented from bdb.py to handle passive mode cleanly.</td> |
109 <td>Public method reimplemented from bdb.py to handle passive mode cleanly.</td> |
110 </tr><tr> |
110 </tr><tr> |
111 <td><a href="#DebugBase.fix_frame_filename">fix_frame_filename</a></td> |
111 <td><a href="#DebugBase.fix_frame_filename">fix_frame_filename</a></td> |
112 <td>Public method used to fixup the filename for a given frame.</td> |
112 <td>Public method used to fixup the filename for a given frame.</td> |
113 </tr><tr> |
113 </tr><tr> |
114 <td><a href="#DebugBase.getCurrentFrame">getCurrentFrame</a></td> |
114 <td><a href="#DebugBase.getCurrentFrame">getCurrentFrame</a></td> |
116 </tr><tr> |
116 </tr><tr> |
117 <td><a href="#DebugBase.getCurrentFrameLocals">getCurrentFrameLocals</a></td> |
117 <td><a href="#DebugBase.getCurrentFrameLocals">getCurrentFrameLocals</a></td> |
118 <td>Public method to return the locals dictionary of the current frame.</td> |
118 <td>Public method to return the locals dictionary of the current frame.</td> |
119 </tr><tr> |
119 </tr><tr> |
120 <td><a href="#DebugBase.getEvent">getEvent</a></td> |
120 <td><a href="#DebugBase.getEvent">getEvent</a></td> |
121 <td>Public method to return the last debugger event.</td> |
121 <td>Protected method to return the last debugger event.</td> |
122 </tr><tr> |
122 </tr><tr> |
123 <td><a href="#DebugBase.getStack">getStack</a></td> |
123 <td><a href="#DebugBase.getStack">getStack</a></td> |
124 <td>Public method to get the stack.</td> |
124 <td>Public method to get the stack.</td> |
125 </tr><tr> |
125 </tr><tr> |
126 <td><a href="#DebugBase.get_break">get_break</a></td> |
126 <td><a href="#DebugBase.get_break">get_break</a></td> |
127 <td>Reimplemented from bdb.py to get the first breakpoint of a particular line.</td> |
127 <td>Public method reimplemented from bdb.py to get the first breakpoint of a particular line.</td> |
128 </tr><tr> |
128 </tr><tr> |
129 <td><a href="#DebugBase.get_watch">get_watch</a></td> |
129 <td><a href="#DebugBase.get_watch">get_watch</a></td> |
130 <td>Public method to get a watch expression.</td> |
130 <td>Public method to get a watch expression.</td> |
131 </tr><tr> |
131 </tr><tr> |
132 <td><a href="#DebugBase.go">go</a></td> |
132 <td><a href="#DebugBase.go">go</a></td> |
140 </tr><tr> |
140 </tr><tr> |
141 <td><a href="#DebugBase.setRecursionDepth">setRecursionDepth</a></td> |
141 <td><a href="#DebugBase.setRecursionDepth">setRecursionDepth</a></td> |
142 <td>Public method to determine the current recursion depth.</td> |
142 <td>Public method to determine the current recursion depth.</td> |
143 </tr><tr> |
143 </tr><tr> |
144 <td><a href="#DebugBase.set_continue">set_continue</a></td> |
144 <td><a href="#DebugBase.set_continue">set_continue</a></td> |
145 <td>Reimplemented from bdb.py to always get informed of exceptions.</td> |
145 <td>Public method reimplemented from bdb.py to always get informed of exceptions.</td> |
146 </tr><tr> |
146 </tr><tr> |
147 <td><a href="#DebugBase.set_quit">set_quit</a></td> |
147 <td><a href="#DebugBase.set_quit">set_quit</a></td> |
148 <td>Public method to quit.</td> |
148 <td>Public method to quit.</td> |
149 </tr><tr> |
149 </tr><tr> |
150 <td><a href="#DebugBase.set_trace">set_trace</a></td> |
150 <td><a href="#DebugBase.set_trace">set_trace</a></td> |
151 <td>Overridden method of bdb.py to do some special setup.</td> |
151 <td>Public method reimplemented from bdb.py to do some special setup.</td> |
152 </tr><tr> |
152 </tr><tr> |
153 <td><a href="#DebugBase.set_watch">set_watch</a></td> |
153 <td><a href="#DebugBase.set_watch">set_watch</a></td> |
154 <td>Public method to set a watch expression.</td> |
154 <td>Public method to set a watch expression.</td> |
155 </tr><tr> |
155 </tr><tr> |
156 <td><a href="#DebugBase.step">step</a></td> |
156 <td><a href="#DebugBase.step">step</a></td> |
158 </tr><tr> |
158 </tr><tr> |
159 <td><a href="#DebugBase.stepOut">stepOut</a></td> |
159 <td><a href="#DebugBase.stepOut">stepOut</a></td> |
160 <td>Public method to perform a step out of the current call.</td> |
160 <td>Public method to perform a step out of the current call.</td> |
161 </tr><tr> |
161 </tr><tr> |
162 <td><a href="#DebugBase.stop_here">stop_here</a></td> |
162 <td><a href="#DebugBase.stop_here">stop_here</a></td> |
163 <td>Reimplemented to filter out debugger files.</td> |
163 <td>Public method reimplemented to filter out debugger files.</td> |
164 </tr><tr> |
164 </tr><tr> |
165 <td><a href="#DebugBase.trace_dispatch">trace_dispatch</a></td> |
165 <td><a href="#DebugBase.trace_dispatch">trace_dispatch</a></td> |
166 <td>Reimplemented from bdb.py to do some special things.</td> |
166 <td>Public method reimplemented from bdb.py to do some special things.</td> |
167 </tr><tr> |
167 </tr><tr> |
168 <td><a href="#DebugBase.user_exception">user_exception</a></td> |
168 <td><a href="#DebugBase.user_exception">user_exception</a></td> |
169 <td>Reimplemented to report an exception to the debug server.</td> |
169 <td>Public method reimplemented to report an exception to the debug server.</td> |
170 </tr><tr> |
170 </tr><tr> |
171 <td><a href="#DebugBase.user_line">user_line</a></td> |
171 <td><a href="#DebugBase.user_line">user_line</a></td> |
172 <td>Reimplemented to handle the program about to execute a particular line.</td> |
172 <td>Public method reimplemented to handle the program about to execute a particular line.</td> |
173 </tr><tr> |
173 </tr><tr> |
174 <td><a href="#DebugBase.user_return">user_return</a></td> |
174 <td><a href="#DebugBase.user_return">user_return</a></td> |
175 <td>Reimplemented to report program termination to the debug server.</td> |
175 <td>Public method reimplemented to report program termination to the debug server.</td> |
176 </tr> |
176 </tr> |
177 </table> |
177 </table> |
178 <h3>Static Methods</h3> |
178 <h3>Static Methods</h3> |
179 <table> |
179 <table> |
180 <tr><td>None</td></tr> |
180 <tr><td>None</td></tr> |
295 </dd> |
295 </dd> |
296 </dl><a NAME="DebugBase.break_anywhere" ID="DebugBase.break_anywhere"></a> |
296 </dl><a NAME="DebugBase.break_anywhere" ID="DebugBase.break_anywhere"></a> |
297 <h4>DebugBase.break_anywhere</h4> |
297 <h4>DebugBase.break_anywhere</h4> |
298 <b>break_anywhere</b>(<i>frame</i>) |
298 <b>break_anywhere</b>(<i>frame</i>) |
299 <p> |
299 <p> |
300 Reimplemented from bdb.py to do some special things. |
300 Public method reimplemented from bdb.py to do some special things. |
301 </p><p> |
301 </p><p> |
302 These speciality is to fix the filename from the frame |
302 These speciality is to fix the filename from the frame |
303 (see fix_frame_filename for more info). |
303 (see fix_frame_filename for more info). |
304 </p><dl> |
304 </p><dl> |
305 <dt><i>frame</i></dt> |
305 <dt><i>frame</i></dt> |
313 </dd> |
313 </dd> |
314 </dl><a NAME="DebugBase.break_here" ID="DebugBase.break_here"></a> |
314 </dl><a NAME="DebugBase.break_here" ID="DebugBase.break_here"></a> |
315 <h4>DebugBase.break_here</h4> |
315 <h4>DebugBase.break_here</h4> |
316 <b>break_here</b>(<i>frame</i>) |
316 <b>break_here</b>(<i>frame</i>) |
317 <p> |
317 <p> |
318 Reimplemented from bdb.py to fix the filename from the frame. |
318 Public method reimplemented from bdb.py to fix the filename from the |
|
319 frame. |
319 </p><p> |
320 </p><p> |
320 See fix_frame_filename for more info. |
321 See fix_frame_filename for more info. |
321 </p><dl> |
322 </p><dl> |
322 <dt><i>frame</i></dt> |
323 <dt><i>frame</i></dt> |
323 <dd> |
324 <dd> |
340 </dd> |
341 </dd> |
341 </dl><a NAME="DebugBase.dispatch_exception" ID="DebugBase.dispatch_exception"></a> |
342 </dl><a NAME="DebugBase.dispatch_exception" ID="DebugBase.dispatch_exception"></a> |
342 <h4>DebugBase.dispatch_exception</h4> |
343 <h4>DebugBase.dispatch_exception</h4> |
343 <b>dispatch_exception</b>(<i>frame, arg</i>) |
344 <b>dispatch_exception</b>(<i>frame, arg</i>) |
344 <p> |
345 <p> |
345 Reimplemented from bdb.py to always call user_exception. |
346 Public method reimplemented from bdb.py to always call user_exception. |
346 </p><dl> |
347 </p><dl> |
347 <dt><i>frame</i></dt> |
348 <dt><i>frame</i></dt> |
348 <dd> |
349 <dd> |
349 The current stack frame. |
350 The current stack frame. |
350 </dd><dt><i>arg</i></dt> |
351 </dd><dt><i>arg</i></dt> |
363 </dd> |
364 </dd> |
364 </dl><a NAME="DebugBase.dispatch_line" ID="DebugBase.dispatch_line"></a> |
365 </dl><a NAME="DebugBase.dispatch_line" ID="DebugBase.dispatch_line"></a> |
365 <h4>DebugBase.dispatch_line</h4> |
366 <h4>DebugBase.dispatch_line</h4> |
366 <b>dispatch_line</b>(<i>frame</i>) |
367 <b>dispatch_line</b>(<i>frame</i>) |
367 <p> |
368 <p> |
368 Reimplemented from bdb.py to do some special things. |
369 Public method reimplemented from bdb.py to do some special things. |
369 </p><p> |
370 </p><p> |
370 This speciality is to check the connection to the debug server |
371 This speciality is to check the connection to the debug server |
371 for new events (i.e. new breakpoints) while we are going through |
372 for new events (i.e. new breakpoints) while we are going through |
372 the code. |
373 the code. |
373 </p><dl> |
374 </p><dl> |
387 </dd> |
388 </dd> |
388 </dl><a NAME="DebugBase.dispatch_return" ID="DebugBase.dispatch_return"></a> |
389 </dl><a NAME="DebugBase.dispatch_return" ID="DebugBase.dispatch_return"></a> |
389 <h4>DebugBase.dispatch_return</h4> |
390 <h4>DebugBase.dispatch_return</h4> |
390 <b>dispatch_return</b>(<i>frame, arg</i>) |
391 <b>dispatch_return</b>(<i>frame, arg</i>) |
391 <p> |
392 <p> |
392 Reimplemented from bdb.py to handle passive mode cleanly. |
393 Public method reimplemented from bdb.py to handle passive mode cleanly. |
393 </p><dl> |
394 </p><dl> |
394 <dt><i>frame</i></dt> |
395 <dt><i>frame</i></dt> |
395 <dd> |
396 <dd> |
396 The current stack frame. |
397 The current stack frame. |
397 </dd><dt><i>arg</i></dt> |
398 </dd><dt><i>arg</i></dt> |
456 </dd> |
457 </dd> |
457 </dl><a NAME="DebugBase.getEvent" ID="DebugBase.getEvent"></a> |
458 </dl><a NAME="DebugBase.getEvent" ID="DebugBase.getEvent"></a> |
458 <h4>DebugBase.getEvent</h4> |
459 <h4>DebugBase.getEvent</h4> |
459 <b>getEvent</b>(<i></i>) |
460 <b>getEvent</b>(<i></i>) |
460 <p> |
461 <p> |
461 Public method to return the last debugger event. |
462 Protected method to return the last debugger event. |
462 </p><dl> |
463 </p><dl> |
463 <dt>Returns:</dt> |
464 <dt>Returns:</dt> |
464 <dd> |
465 <dd> |
465 last debugger event (string) |
466 last debugger event (string) |
466 </dd> |
467 </dd> |
477 </dd> |
478 </dd> |
478 </dl><a NAME="DebugBase.get_break" ID="DebugBase.get_break"></a> |
479 </dl><a NAME="DebugBase.get_break" ID="DebugBase.get_break"></a> |
479 <h4>DebugBase.get_break</h4> |
480 <h4>DebugBase.get_break</h4> |
480 <b>get_break</b>(<i>filename, lineno</i>) |
481 <b>get_break</b>(<i>filename, lineno</i>) |
481 <p> |
482 <p> |
482 Reimplemented from bdb.py to get the first breakpoint of a particular |
483 Public method reimplemented from bdb.py to get the first breakpoint of |
483 line. |
484 a particular line. |
484 </p><p> |
485 </p><p> |
485 Because eric5 supports only one breakpoint per line, this overwritten |
486 Because eric5 supports only one breakpoint per line, this overwritten |
486 method will return this one and only breakpoint. |
487 method will return this one and only breakpoint. |
487 </p><dl> |
488 </p><dl> |
488 <dt><i>filename</i></dt> |
489 <dt><i>filename</i></dt> |
568 </dd> |
569 </dd> |
569 </dl><a NAME="DebugBase.set_continue" ID="DebugBase.set_continue"></a> |
570 </dl><a NAME="DebugBase.set_continue" ID="DebugBase.set_continue"></a> |
570 <h4>DebugBase.set_continue</h4> |
571 <h4>DebugBase.set_continue</h4> |
571 <b>set_continue</b>(<i>special</i>) |
572 <b>set_continue</b>(<i>special</i>) |
572 <p> |
573 <p> |
573 Reimplemented from bdb.py to always get informed of exceptions. |
574 Public method reimplemented from bdb.py to always get informed of |
|
575 exceptions. |
574 </p><dl> |
576 </p><dl> |
575 <dt><i>special</i></dt> |
577 <dt><i>special</i></dt> |
576 <dd> |
578 <dd> |
577 flag indicating a special continue operation |
579 flag indicating a special continue operation |
578 </dd> |
580 </dd> |
585 It wraps call to bdb to clear the current frame properly. |
587 It wraps call to bdb to clear the current frame properly. |
586 </p><a NAME="DebugBase.set_trace" ID="DebugBase.set_trace"></a> |
588 </p><a NAME="DebugBase.set_trace" ID="DebugBase.set_trace"></a> |
587 <h4>DebugBase.set_trace</h4> |
589 <h4>DebugBase.set_trace</h4> |
588 <b>set_trace</b>(<i>frame=None</i>) |
590 <b>set_trace</b>(<i>frame=None</i>) |
589 <p> |
591 <p> |
590 Overridden method of bdb.py to do some special setup. |
592 Public method reimplemented from bdb.py to do some special setup. |
591 </p><dl> |
593 </p><dl> |
592 <dt><i>frame</i></dt> |
594 <dt><i>frame</i></dt> |
593 <dd> |
595 <dd> |
594 frame to start debugging from |
596 frame to start debugging from |
595 </dd> |
597 </dd> |
624 Public method to perform a step out of the current call. |
626 Public method to perform a step out of the current call. |
625 </p><a NAME="DebugBase.stop_here" ID="DebugBase.stop_here"></a> |
627 </p><a NAME="DebugBase.stop_here" ID="DebugBase.stop_here"></a> |
626 <h4>DebugBase.stop_here</h4> |
628 <h4>DebugBase.stop_here</h4> |
627 <b>stop_here</b>(<i>frame</i>) |
629 <b>stop_here</b>(<i>frame</i>) |
628 <p> |
630 <p> |
629 Reimplemented to filter out debugger files. |
631 Public method reimplemented to filter out debugger files. |
630 </p><p> |
632 </p><p> |
631 Tracing is turned off for files that are part of the |
633 Tracing is turned off for files that are part of the |
632 debugger that are called from the application being debugged. |
634 debugger that are called from the application being debugged. |
633 </p><dl> |
635 </p><dl> |
634 <dt><i>frame</i></dt> |
636 <dt><i>frame</i></dt> |
642 </dd> |
644 </dd> |
643 </dl><a NAME="DebugBase.trace_dispatch" ID="DebugBase.trace_dispatch"></a> |
645 </dl><a NAME="DebugBase.trace_dispatch" ID="DebugBase.trace_dispatch"></a> |
644 <h4>DebugBase.trace_dispatch</h4> |
646 <h4>DebugBase.trace_dispatch</h4> |
645 <b>trace_dispatch</b>(<i>frame, event, arg</i>) |
647 <b>trace_dispatch</b>(<i>frame, event, arg</i>) |
646 <p> |
648 <p> |
647 Reimplemented from bdb.py to do some special things. |
649 Public method reimplemented from bdb.py to do some special things. |
648 </p><p> |
650 </p><p> |
649 This specialty is to check the connection to the debug server |
651 This specialty is to check the connection to the debug server |
650 for new events (i.e. new breakpoints) while we are going through |
652 for new events (i.e. new breakpoints) while we are going through |
651 the code. |
653 the code. |
652 </p><dl> |
654 </p><dl> |
667 </dd> |
669 </dd> |
668 </dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a> |
670 </dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a> |
669 <h4>DebugBase.user_exception</h4> |
671 <h4>DebugBase.user_exception</h4> |
670 <b>user_exception</b>(<i>frame, excinfo, unhandled=False</i>) |
672 <b>user_exception</b>(<i>frame, excinfo, unhandled=False</i>) |
671 <p> |
673 <p> |
672 Reimplemented to report an exception to the debug server. |
674 Public method reimplemented to report an exception to the debug server. |
673 </p><dl> |
675 </p><dl> |
674 <dt><i>frame</i></dt> |
676 <dt><i>frame</i></dt> |
675 <dd> |
677 <dd> |
676 the frame object |
678 the frame object |
677 </dd><dt><i>excinfo</i></dt> |
679 </dd><dt><i>excinfo</i></dt> |
683 </dd> |
685 </dd> |
684 </dl><a NAME="DebugBase.user_line" ID="DebugBase.user_line"></a> |
686 </dl><a NAME="DebugBase.user_line" ID="DebugBase.user_line"></a> |
685 <h4>DebugBase.user_line</h4> |
687 <h4>DebugBase.user_line</h4> |
686 <b>user_line</b>(<i>frame</i>) |
688 <b>user_line</b>(<i>frame</i>) |
687 <p> |
689 <p> |
688 Reimplemented to handle the program about to execute a particular line. |
690 Public method reimplemented to handle the program about to execute a |
|
691 particular line. |
689 </p><dl> |
692 </p><dl> |
690 <dt><i>frame</i></dt> |
693 <dt><i>frame</i></dt> |
691 <dd> |
694 <dd> |
692 the frame object |
695 the frame object |
693 </dd> |
696 </dd> |
694 </dl><a NAME="DebugBase.user_return" ID="DebugBase.user_return"></a> |
697 </dl><a NAME="DebugBase.user_return" ID="DebugBase.user_return"></a> |
695 <h4>DebugBase.user_return</h4> |
698 <h4>DebugBase.user_return</h4> |
696 <b>user_return</b>(<i>frame, retval</i>) |
699 <b>user_return</b>(<i>frame, retval</i>) |
697 <p> |
700 <p> |
698 Reimplemented to report program termination to the debug server. |
701 Public method reimplemented to report program termination to the debug |
|
702 server. |
699 </p><dl> |
703 </p><dl> |
700 <dt><i>frame</i></dt> |
704 <dt><i>frame</i></dt> |
701 <dd> |
705 <dd> |
702 the frame object |
706 the frame object |
703 </dd><dt><i>retval</i></dt> |
707 </dd><dt><i>retval</i></dt> |