MCPcopy
hub / github.com/django/django / debug

Method debug

django/test/runner.py:142–150  ·  view source on GitHub ↗
(self, error)

Source from the content-addressed store, hash-verified

140 super().addSubTest(test, subtest, err)
141
142 def debug(self, error):
143 self._restoreStdout()
144 self.buffer = False
145 exc_type, exc_value, traceback = error
146 print("\nOpening PDB: %r" % exc_value)
147 if PY313:
148 pdb.post_mortem(exc_value)
149 else:
150 pdb.post_mortem(traceback)
151
152
153class DummyList:

Callers 15

addErrorMethod · 0.95
addFailureMethod · 0.95
addSubTestMethod · 0.95
iter_modules_and_filesFunction · 0.45
watch_dirMethod · 0.45
wait_for_apps_readyMethod · 0.45
runMethod · 0.45
notify_file_changedMethod · 0.45
tickMethod · 0.45
_watch_rootMethod · 0.45
_subscribeMethod · 0.45
_update_watchesMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_debug_cleanupMethod · 0.36