To run a script file with debugging enabled, but without waiting for the client to attach (i.e. code starts executing immediately): -m debugpy --listen localhost:5678 myfile.py To wait until the ...