microsoft / microsoft/vscode-cpptools

Debug: Compound - Python / Attach C Process doesn't work

Aperta
#5,917 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

debugger
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Type: Debugger

Describe the bug

  • OS and Version: Windows 1909
  • VS Code Version: 1.48-insder
  • C/C++ Extension Version: v0.29.0
  • Other extensions you installed: Python extension

To Reproduce

  1. Open folder in VS Code
  2. Create a new python file:
print("hello world")
  1. Add launch.json config:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "name": "C: Attach to Process",
            "type": "cppvsdbg",
            "request": "attach",
            "processId": "${command:pickProcess}",
            "visualizerFile": ""
        },
        {
            "name":"Python: Current File",
            "type":"python",
            "request":"launch",
            "program":"${file}",
            "console":"integratedTerminal",
            "stopOnEntry": true
        },
    ],
    "compounds":
    [
        {
          "name": "C: Current Python File",
          "configurations": ["Python: Current File", "C: Attach to Process"],
        },
    ]
}
  1. Select the compound launch in the debugger and start it (F5)
  2. See the error Message

image

When you launch the python and c launch task separately it works:

image

Root Issue:
https://github.com/microsoft/vscode/issues/104174

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.

Direzione di ricerca

Inizia riproducendo l'avvio composto dal launch.json fornito con le versioni indicate di Windows, VS Code e dell'estensione C/C++. Leggi l'issue 104174 di VS Code collegata insieme ai sei commenti; il lavoro è completato quando le configurazioni di attach Python e C vengono avviate insieme correttamente tramite la configurazione composta.

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

Valutazione

Stack tecnologico
cpp, python, typescript
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.