MCPcopy Create free account
hub / github.com/ipython/ipython / set_trace

Function set_trace

IPython/terminal/debugger.py:143–149  ·  view source on GitHub ↗

Start debugging from `frame`. If frame is not specified, debugging starts from caller's frame.

(frame=None)

Source from the content-addressed store, hash-verified

141
142
143def set_trace(frame=None):
144 """
145 Start debugging from `frame`.
146
147 If frame is not specified, debugging starts from caller's frame.
148 """
149 TerminalPdb().set_trace(frame or sys._getframe().f_back)
150
151
152if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

TerminalPdbClass · 0.85

Tested by

no test coverage detected