MCPcopy Index your code
hub / github.com/python/cpython / set_trace

Method set_trace

Lib/pdb.py:434–442  ·  view source on GitHub ↗
(self, frame=None, *, commands=None)

Source from the content-addressed store, hash-verified

432 self._user_requested_quit = False
433
434 def set_trace(self, frame=None, *, commands=None):
435 Pdb._last_pdb_instance = self
436 if frame is None:
437 frame = sys._getframe().f_back
438
439 if commands is not None:
440 self.rcLines.extend(commands)
441
442 super().set_trace(frame)
443
444 async def set_trace_async(self, frame=None, *, commands=None):
445 if self.async_awaitable is not None:

Callers 7

set_trace_asyncMethod · 0.95
sigint_handlerMethod · 0.95
set_traceFunction · 0.95
test_code_displayMethod · 0.95
test_stack_entryMethod · 0.95
_connectFunction · 0.45
test_headerMethod · 0.45

Calls 2

superClass · 0.85
extendMethod · 0.45

Tested by 3

test_code_displayMethod · 0.76
test_stack_entryMethod · 0.76
test_headerMethod · 0.36