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

changeset 5559
072d97551334
parent 5245
e1908fd9deac
child 5606
da305d172769
equal deleted inserted replaced
5558:858abfcbaf28 5559:072d97551334
81 <td>Private method to set a flag every 0.5 s to check for new messages.</td> 81 <td>Private method to set a flag every 0.5 s to check for new messages.</td>
82 </tr><tr> 82 </tr><tr>
83 <td><a href="#DebugBase.__extractExceptionName">__extractExceptionName</a></td> 83 <td><a href="#DebugBase.__extractExceptionName">__extractExceptionName</a></td>
84 <td>Private method to extract the exception name given the exception type object.</td> 84 <td>Private method to extract the exception name given the exception type object.</td>
85 </tr><tr> 85 </tr><tr>
86 <td><a href="#DebugBase.__extractSystemExitMessage">__extractSystemExitMessage</a></td>
87 <td>Private method to get the SystemExit code and message.</td>
88 </tr><tr>
86 <td><a href="#DebugBase.__extract_stack">__extract_stack</a></td> 89 <td><a href="#DebugBase.__extract_stack">__extract_stack</a></td>
87 <td>Private member to return a list of stack frames.</td> 90 <td>Private member to return a list of stack frames.</td>
88 </tr><tr> 91 </tr><tr>
89 <td><a href="#DebugBase.__sendCallTrace">__sendCallTrace</a></td> 92 <td><a href="#DebugBase.__sendCallTrace">__sendCallTrace</a></td>
90 <td>Private method to send a call/return trace.</td> 93 <td>Private method to send a call/return trace.</td>
248 </dl><dl> 251 </dl><dl>
249 <dt>Returns:</dt> 252 <dt>Returns:</dt>
250 <dd> 253 <dd>
251 exception name (string) 254 exception name (string)
252 </dd> 255 </dd>
256 </dl><a NAME="DebugBase.__extractSystemExitMessage" ID="DebugBase.__extractSystemExitMessage"></a>
257 <h4>DebugBase.__extractSystemExitMessage</h4>
258 <b>__extractSystemExitMessage</b>(<i>excinfo</i>)
259 <p>
260 Private method to get the SystemExit code and message.
261 </p><dl>
262 <dt><i>excinfo</i> (tuple(Exception, excval object, traceback frame object))</dt>
263 <dd>
264 details about the SystemExit exception
265 </dd>
266 </dl><dl>
267 <dt>Returns:</dt>
268 <dd>
269 SystemExit code and message
270 </dd>
271 </dl><dl>
272 <dt>Return Type:</dt>
273 <dd>
274 int, str
275 </dd>
253 </dl><a NAME="DebugBase.__extract_stack" ID="DebugBase.__extract_stack"></a> 276 </dl><a NAME="DebugBase.__extract_stack" ID="DebugBase.__extract_stack"></a>
254 <h4>DebugBase.__extract_stack</h4> 277 <h4>DebugBase.__extract_stack</h4>
255 <b>__extract_stack</b>(<i>exctb</i>) 278 <b>__extract_stack</b>(<i>exctb</i>)
256 <p> 279 <p>
257 Private member to return a list of stack frames. 280 Private member to return a list of stack frames.
492 <dd> 515 <dd>
493 raised to indicate too many recursions 516 raised to indicate too many recursions
494 </dd> 517 </dd>
495 </dl><a NAME="DebugBase.run" ID="DebugBase.run"></a> 518 </dl><a NAME="DebugBase.run" ID="DebugBase.run"></a>
496 <h4>DebugBase.run</h4> 519 <h4>DebugBase.run</h4>
497 <b>run</b>(<i>cmd, globals=None, locals=None</i>) 520 <b>run</b>(<i>cmd, globals=None, locals=None, debug=True</i>)
498 <p> 521 <p>
499 Public method to start a given command under debugger control. 522 Public method to start a given command under debugger control.
500 </p><dl> 523 </p><dl>
501 <dt><i>cmd</i> (str or CodeType)</dt> 524 <dt><i>cmd</i> (str or CodeType)</dt>
502 <dd> 525 <dd>
505 <dd> 528 <dd>
506 dictionary of global variables for cmd 529 dictionary of global variables for cmd
507 </dd><dt><i>locals=</i> (dict)</dt> 530 </dd><dt><i>locals=</i> (dict)</dt>
508 <dd> 531 <dd>
509 dictionary of local variables for cmd 532 dictionary of local variables for cmd
533 </dd><dt><i>debug=</i> (bool)</dt>
534 <dd>
535 flag if command should run under debugger control
510 </dd> 536 </dd>
511 </dl><a NAME="DebugBase.setRecursionDepth" ID="DebugBase.setRecursionDepth"></a> 537 </dl><a NAME="DebugBase.setRecursionDepth" ID="DebugBase.setRecursionDepth"></a>
512 <h4>DebugBase.setRecursionDepth</h4> 538 <h4>DebugBase.setRecursionDepth</h4>
513 <b>setRecursionDepth</b>(<i>frame</i>) 539 <b>setRecursionDepth</b>(<i>frame</i>)
514 <p> 540 <p>
670 <dd> 696 <dd>
671 697
672 </dd> 698 </dd>
673 </dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a> 699 </dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a>
674 <h4>DebugBase.user_exception</h4> 700 <h4>DebugBase.user_exception</h4>
675 <b>user_exception</b>(<i>frame, excinfo, unhandled=False</i>) 701 <b>user_exception</b>(<i>excinfo, unhandled=False</i>)
676 <p> 702 <p>
677 Public method reimplemented to report an exception to the debug server. 703 Public method reimplemented to report an exception to the debug server.
678 </p><dl> 704 </p><dl>
679 <dt><i>frame</i> (frame object)</dt> 705 <dt><i>excinfo</i> (tuple(Exception, excval object, traceback frame object))</dt>
680 <dd>
681 the frame object
682 </dd><dt><i>excinfo</i> (tuple(Exception, excval object, traceback frame object))</dt>
683 <dd> 706 <dd>
684 details about the exception 707 details about the exception
685 </dd><dt><i>unhandled=</i> (bool)</dt> 708 </dd><dt><i>unhandled=</i> (bool)</dt>
686 <dd> 709 <dd>
687 flag indicating an uncaught exception 710 flag indicating an uncaught exception

eric ide

mercurial