microsoft / microsoft/vscode-cpptools

VSCode opens different file with the same name while debugging

Aperta
#8,430 8 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

Bug type: Debugger

Describe the bug

  • OS and Version: Amazon Linux 2
  • VS Code Version: 1.61.2
  • C/C++ Extension Version: 1.7.1
  • Other extensions you installed (and if the issue persists after disabling them): yes
  • A clear and concise description of what the bug is.

To Reproduce

  1. Debugging the open source mysql code in Amazon linux. I set the breakpoint on the file sql/dd/upgrade_57/table.cc and launch the mysqld to debug.
  2. The debugger hits in the different file with same name present at different location that is sql/table.cc . It hits the same line number though in that file. As you can see from the attache screenshots.
Screenshot 2021-11-22 at 7 51 09 AM Screenshot 2021-11-22 at 7 51 09 AM

Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Attached the filtered log -
filtered.txt

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 con il log filtered.txt allegato e riproduci il debug del codice sorgente MySQL con un breakpoint in sql/dd/upgrade_57/table.cc. Confronta il modo in cui il debugger risolve quel percorso con sql/table.cc, che ha lo stesso nome di file. Il lavoro è completato quando il breakpoint si apre e rimane associato al file sorgente selezionato invece che all’altro file con lo stesso nome.

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

Valutazione

Stack tecnologico
cpp, typescript, vscode
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.