microsoft / microsoft/vscode-cpptools
`Show source code in disassembly view` not work
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Bug type: Debugger & Disassembly
Describe the bug
- OS and Version: Linux (Ubuntu 20LTS)
- VS Code Version: 1.63.0
- C/C++ Extension Version: v1.7.1
- Other extensions you installed (and if the issue persists after disabling them):
- A clear and concise description of what the bug is.
To Reproduce
Please include a code sample and launch.json configuration.
launch.json: the generated default.
code sample: just c++ hello world.
Steps to reproduce the behavior:
- Check the
Settings - Features - Debug - [Disassembly View: Show source code], make sure it's TRUE; - In the editor, write any good c++ code, then press F5 to start a normal debug, and pause at some breakpoint.
- Right click inside the code area, select
Open Disassembly Viewto launch the disassembly view. - As it shows, there's only assembly code. The c++ source code is NOT inlined within the assembly code.
Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.
What I want is: c++ source code can be inlined within the disassembly code together, just like the visual studio behaves:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on Ubuntu with VS Code 1.63.0, the C/C++ extension v1.7.1, the generated launch.json, and the Disassembly View: Show source code setting enabled. Pause a C++ hello-world program at a breakpoint and open the disassembly view; done means C++ source is shown inline with the assembly as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100