MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _wait_for_attach

Function _wait_for_attach

pydevd.py:2913–2923  ·  view source on GitHub ↗

Meant to be called after _enable_attach() -- the current thread will only unblock after a connection is in place and the DAP (Debug Adapter Protocol) sends the ConfigurationDone request.

(cancel=None)

Source from the content-addressed store, hash-verified

2911
2912
2913def _wait_for_attach(cancel=None):
2914 """
2915 Meant to be called after _enable_attach() -- the current thread will only unblock after a
2916 connection is in place and the DAP (Debug Adapter Protocol) sends the ConfigurationDone
2917 request.
2918 """
2919 py_db = get_global_debugger()
2920 if py_db is None:
2921 raise AssertionError("Debugger still not created. Please use _enable_attach() before using _wait_for_attach().")
2922
2923 py_db.block_until_configuration_done(cancel=cancel)
2924
2925
2926def _is_attached():

Callers

nothing calls this directly

Calls 2

get_global_debuggerFunction · 0.85

Tested by

no test coverage detected