MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / debug_exception

Function debug_exception

_pydevd_bundle/_debug_adapter/pydevd_schema_log.py:33–45  ·  view source on GitHub ↗
(msg=None)

Source from the content-addressed store, hash-verified

31
32
33def debug_exception(msg=None):
34 if DEBUG:
35 if msg:
36 debug(msg)
37
38 with _debug_lock:
39 with open(DEBUG_FILE, "a+") as stream:
40 _pid_prefix = _pid_msg
41 if isinstance(msg, bytes):
42 _pid_prefix = _pid_prefix.encode("utf-8")
43 stream.write(_pid_prefix)
44
45 traceback.print_exc(file=stream)

Callers 1

from_dictFunction · 0.90

Calls 2

debugFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected