Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple debug connections in VS code using the same port #1501

Open
udgithub opened this issue Jan 26, 2024 · 0 comments
Open

Allow multiple debug connections in VS code using the same port #1501

udgithub opened this issue Jan 26, 2024 · 0 comments

Comments

@udgithub
Copy link

Hello debugpy team, hi Pavel,

the discussion
"How to debug cmdline scripts with options used in a sequence of piped cmds with VS Code" #1498
described a way to debug multiple calls of a cmdline script in a sequence of linux commands using a pipe.
In this example the debug connection has been opened from the script to a listening VS code IDE using --connect

If we have a sequence of calls like so
cat myfile | python -m debugpy --connect 5678 ./python-script-1.py --option1=x | python -m debugpy --connect 5679 python-script-2.py --option2=y
we have to use several ports and we have to start several debug sessions in VS code using their own debug settings for each port.
It would be better, if VS code would only need one debug config for multiple incoming connections and could handle them.
Example:

            "name": "Python: Listen 5678",
            "type": "python",
            "request": "attach",
            "listen": {
                "host": "localhost",
                "port": 5678,
                "allow_multiple_connections": "true"    *** NEW ***
            },
        },

This behaviour would be similar to PHP debugging using xdebug and VS code or PHPstrom.

Thanks a lot in advance for realizing this perhaps in the future.

Best regards, Uwe

@judej judej assigned debonte and unassigned debonte Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants