Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow multiple debug connections in VS code using the same port

Aperta
#1,501 0 commenti 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, vscode

Direzione di ricerca

La issue non indica file o test di debugpy; inizia tracciando il percorso --connect e la configurazione di attach di VS Code mostrata nel report. Il lavoro è completato quando una configurazione di attach può accettare e gestire più connessioni in ingresso sulla stessa porta.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello debugpy team, hi Pavel,

the discussion
"How to debug cmdline scripts with options used in a sequence of piped cmds with VS Code" https://github.com/microsoft/debugpy/discussions/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

Lingua principale
Python
Stelle
2.5k
Fork
202
Merge medio
5g 1h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/debugpy

Tutte le issue di microsoft/debugpy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.