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

Method __init__

tests/debug/output.py:15–23  ·  view source on GitHub ↗
(self, session, **fds)

Source from the content-addressed store, hash-verified

13 """Captures stdout and stderr of the debugged process."""
14
15 def __init__(self, session, **fds):
16 self.session = session
17 self._lock = threading.Lock()
18 self._chunks = {}
19 self._worker_threads = []
20
21 for stream_name, fd in fds.items():
22 log.info("Capturing {0} {1}", session.debuggee_id, stream_name)
23 self._capture(fd, stream_name)
24
25 def __str__(self):
26 return f"CapturedOutput[{self.session.id}]"

Callers

nothing calls this directly

Calls 3

_captureMethod · 0.95
itemsMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected