microsoft / microsoft/vscode-cpptools
Call stack thread ids UI not refreshed with thread names after GDB command
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Environment
- OS and version: Ubuntu 20.04/22.04, W10, W11. Applies to any version.
- VS Code: 1.83
- C/C++ extension: v1.17.5
- OS and version of remote machine (if applicable):
- GDB / LLDB version: Customized one.
Bug Summary and Steps to Reproduce
Bug Summary:
To debug a core dump from our target devices, we have two different data files regarding debug symbols and thread names.
Till now, all company has been using QtCreator for C++ development, but we're doing a transition to WSL2 + VSCode as the new setup. There is a modified version of GDB that has a function called map-thread-names, which as the name implies, it maps & loads the thread names dump file & associate it to the actual call stack from the Core Dump.
Well, this is done automatically with some configurations on QtCreator after you launch the Debugger: the call stack reflects accordingly the thread names. However, with VSCODE I'm able to use the customized GDB, launch the Core Dump and so on, even to run on the Debug Console the command map-thread-names and it will work but only in the Debug console context the thread IDs will be updated (map-thread-names && info threads). The Call Stack UI wont refresh or update anything after executing this command on the GDB Debug Console.
Before running map-thread-names:
After running function & show info threads. Updated on Debug Console but Call Stack UI still shows unmapped.
Debugger Configurations
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch Core Dump",
"type": "cppdbg",
"request": "launch",
"program": "/mnt/disk1/app/bin/App",
"args": ["-g "],
"stopAtEntry": true,
"coreDumpPath": "${workspaceFolder}/coreDump",
"sourceFileMap": {
"/shell": "${workspaceFolder}",
},
"targetArchitecture": "x64",
"additionalSOLibSearchPath": "/mnt/disk1/app/lib",
"cwd": "${fileDirname}",
"miDebuggerPath":"/customgdb",
"MIMode": "gdb",
"logging": {
"trace": true,
"exceptions": true,
"engineLogging":"verbose"
}
}
],
"compounds": []
}
Debugger Logs
I would need to remove info, but can share if needed. I dont think it's relevant for this issue, however.
Other Extensions
No response
Additional Information
Shouldn't the Call Stack UI listen this & update/refresh? Is there anything that we can do to trigger a refresh in the UI to load them? If not, how difficult should be to implement an option like that for the extension?
Thanks!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie damit, die Core-Dump-Sitzung mit dem angepassten GDB zu reproduzieren, und vergleichen Sie anschließend die Ausgabe der Debug Console von map-thread-names <file> und info threads mit der Call Stack UI. Untersuchen Sie den Aktualisierungspfad für Threads und Call Stacks der Erweiterung; als abgeschlossen gilt die Aufgabe, wenn die UI nach dem Befehl die aktualisierten Thread-Namen widerspiegelt und eine verifizierte Reproduktion oder ein Regressionstest vorhanden ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100