microsoft / microsoft/vscode-cpptools
Debugging: clang/lldb/macOS - no symbols for app but symbols loaded in lldb
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Discussed in https://github.com/microsoft/vscode-cpptools/discussions/9867
Originally posted by thisisagenericusernameforagenericperson September 9, 2022
Hello,
I'm trying to use vscode to build and debug an app that uses QT. I get symbol information for QT classes, but not for my own classes.
The data in the "variables" panel only shows memory addresses. However, doing a -exec image lookup -vn MyClassName shows that there are two locations found where the symbol has been found. Curiously, it's the same location twice.
Also, the callstack shows proper symbol names as well.
In any case, this indicates that the symbol is available to the lldb debugger, but not in vscode.
Would love to hear about any suggestions. Thanks!
The following is my launch configuration.
{
"configurations": [
{
"name": "C/C++: Run with Debugger",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${config:buildDirectory}/debug/${config:appName}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/${config:buildDirectory}/debug",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"symbolLoadInfo": {
"loadAll": true,
"exceptionList": "",
},
"preLaunchTask": "Build (Debug)",
"setupCommands": [
{
"text": "settings set target.process.thread.step-avoid-regexp """,
"description": "Enable stepping into STL"
}
],
"logging": {
"engineLogging": false,
"trace": false,
"traceResponse": false
}
}
],
"version": "2.0.0"
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dalla discussione collegata 9867 e riproduci la sessione LLDB su macOS usando la configurazione di avvio di questa issue. Confronta il pannello Variables con -exec image lookup -vn MyClassName e lo stack delle chiamate simbolizzato; il lavoro è completato quando i simboli delle classi dell'applicazione stessa compaiono correttamente nelle variabili di VS Code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, macos, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100