MCPcopy Create free account
hub / github.com/microsoft/debugpy / ensure_logging

Function ensure_logging

src/debugpy/server/api.py:50–58  ·  view source on GitHub ↗

Starts logging to log.log_dir, if it hasn't already been done.

()

Source from the content-addressed store, hash-verified

48
49
50def ensure_logging():
51 """Starts logging to log.log_dir, if it hasn't already been done."""
52 if ensure_logging.ensured:
53 return
54 ensure_logging.ensured = True
55 log.to_file(prefix="debugpy.server")
56 log.describe_environment("Initial environment:")
57 if log.log_dir is not None:
58 pydevd.log_to(log.log_dir + "/debugpy.pydevd.log")
59
60
61ensure_logging.ensured = False

Callers 6

configureFunction · 0.85
debugFunction · 0.85
__call__Method · 0.85
breakpointFunction · 0.85
debug_this_threadFunction · 0.85
trace_this_threadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…