()
| 2993 | assert writer.process is not None |
| 2994 | |
| 2995 | def attach(): |
| 2996 | attach_pydevd_file = os.path.join(os.path.dirname(pydevd.__file__), "pydevd_attach_to_process", "attach_pydevd.py") |
| 2997 | subprocess.call([sys.executable, attach_pydevd_file, "--pid", str(writer.process.pid), "--port", str(writer.port)]) |
| 2998 | |
| 2999 | threading.Thread(target=attach).start() |
| 3000 |