MCPcopy
hub / github.com/pytest-dev/pytest / set_trace

Method set_trace

src/_pytest/debugging.py:279–283  ·  view source on GitHub ↗

Invoke debugging via ``Pdb.set_trace``, dropping any IO capturing.

(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

277
278 @classmethod
279 def set_trace(cls, *args, **kwargs) -> None:
280 """Invoke debugging via ``Pdb.set_trace``, dropping any IO capturing."""
281 frame = sys._getframe().f_back
282 _pdb = cls._init_pdb("set_trace", *args, **kwargs)
283 _pdb.set_trace(frame)
284
285
286class PdbInvoke:

Callers

nothing calls this directly

Calls 1

_init_pdbMethod · 0.80

Tested by

no test coverage detected