MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / post_mortem

Function post_mortem

tools/python-3.11.9-amd64/Lib/pdb.py:1700–1712  ·  view source on GitHub ↗
(t=None)

Source from the content-addressed store, hash-verified

1698# Post-Mortem interface
1699
1700def post_mortem(t=None):
1701 # handling the default
1702 if t is None:
1703 # sys.exc_info() returns (type, value, traceback) if an exception is
1704 # being handled, otherwise it returns None
1705 t = sys.exc_info()[2]
1706 if t is None:
1707 raise ValueError("A valid traceback must be passed if no "
1708 "exception is being handled")
1709
1710 p = Pdb()
1711 p.reset()
1712 p.interaction(None, t)
1713
1714def pm():
1715 post_mortem(sys.last_traceback)

Callers 1

pmFunction · 0.85

Calls 3

resetMethod · 0.95
interactionMethod · 0.95
PdbClass · 0.85

Tested by

no test coverage detected