You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attach to specific multiprocessing subprocesses via the CLI? #1838
with subProcess = True I can do python -m debugpy --listen 5678 --wait-for-client <path-to-file.py> and then attach to a (seemingly random, but usually rank-zero) process by specifying port = 5678 and debug that one process. But I can't figure out how to either attach to a specifc process or get any of the other ranks to step through their code.
Is it possible to achieve this just through the CLI?
One thing that does work is to explicitly insert the debugpy API calls into the source code:
Just calling python <path-to-file.py>, I can attach to any port in {5678, 5679, 5680, 5681} and connect to the expected rank. But, it would be great if there were a way to achieve this without needing to change the source code.
Activity
rchiodo commentedon Feb 18, 2025
Transferring to a discussion item as this isn't a bug.