MCPcopy Index your code
hub / github.com/bpython/bpython / set_trace

Function set_trace

bpdb/__init__.py:40–44  ·  view source on GitHub ↗

Just like pdb.set_trace(), a helper function that creates a debugger instance and sets the trace.

()

Source from the content-addressed store, hash-verified

38
39
40def set_trace():
41 """Just like pdb.set_trace(), a helper function that creates
42 a debugger instance and sets the trace."""
43 debugger = BPdb()
44 debugger.set_trace(sys._getframe().f_back)
45
46
47# Adopted verbatim from pdb for completeness:

Callers

nothing calls this directly

Calls 1

BPdbClass · 0.85

Tested by

no test coverage detected