(self)
| 300 | |
| 301 | class 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(): |
nothing calls this directly
no test coverage detected