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

Function dump_after

src/debugpy/common/stacks.py:50–62  ·  view source on GitHub ↗

Invokes dump() on a background thread after waiting for the specified time.

(secs)

Source from the content-addressed store, hash-verified

48
49
50def dump_after(secs):
51 """Invokes dump() on a background thread after waiting for the specified time."""
52
53 def dumper():
54 time.sleep(secs)
55 try:
56 dump()
57 except:
58 log.swallow_exception()
59
60 thread = threading.Thread(target=dumper)
61 thread.daemon = True
62 thread.start()

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…