Where pyshebangscript looks like this and is an auto-generated shim created by poetry from the [tool.poetry.scripts] pyproject.toml section. #!/app/pypoetry ...
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 ...