microsoft / microsoft/vscode-cpptools
Debugging: clang/lldb/macOS - no symbols for app but symbols loaded in lldb
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
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"
}
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
Beginne mit der verlinkten Diskussion 9867 und reproduziere die macOS-LLDB-Sitzung mithilfe der Startkonfiguration in diesem Issue. Vergleiche das Variablenfenster mit -exec image lookup -vn MyClassName und dem symbolisierten Aufruf-Stack; abgeschlossen ist die Aufgabe, wenn die Symbole der klassen des eigenen Apps in den VS Code-Variablen korrekt angezeigt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, macos, 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