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

Method __call__

src/debugpy/server/api.py:302–312  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

300
301class wait_for_client:
302 def __call__(self):
303 ensure_logging()
304 log.debug("wait_for_client()")
305
306 pydb = get_global_debugger()
307 if pydb is None:
308 raise RuntimeError("listen() or connect() must be called first")
309
310 cancel_event = threading.Event()
311 self.cancel = cancel_event.set
312 pydevd._wait_for_attach(cancel=cancel_event)
313
314 @staticmethod
315 def cancel():

Callers

nothing calls this directly

Calls 2

get_global_debuggerFunction · 0.90
ensure_loggingFunction · 0.85

Tested by

no test coverage detected