microsoft / microsoft/vscode-cpptools

Debugging: clang/lldb/macOS - no symbols for app but symbols loaded in lldb

Open
#9,875 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger more info needed
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

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"
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked discussion 9867 and reproduce the macOS LLDB session using the launch configuration in this issue. Compare the Variables panel with -exec image lookup -vn MyClassName and the symbolized call stack; done means the app's own class symbols appear correctly in VS Code variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.