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

Method _capture

tests/debug/output.py:49–58  ·  view source on GitHub ↗
(self, fd, name)

Source from the content-addressed store, hash-verified

47 os.close(fd)
48
49 def _capture(self, fd, name):
50 assert name not in self._chunks
51 self._chunks[name] = []
52
53 thread = threading.Thread(
54 target=lambda: self._worker(fd, name), name=f"{self} {name}"
55 )
56 thread.daemon = True
57 thread.start()
58 self._worker_threads.append(thread)
59
60 def wait(self, timeout=None):
61 """Wait for all remaining output to be captured."""

Callers 1

__init__Method · 0.95

Calls 3

_workerMethod · 0.95
startMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected