microsoft / microsoft/vscode-cpptools

`Show source code in disassembly view` not work

Open
#8,516 3 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger Feature Request
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:

  1. Check the Settings - Features - Debug - [Disassembly View: Show source code], make sure it's TRUE;
  2. In the editor, write any good c++ code, then press F5 to start a normal debug, and pause at some breakpoint.
  3. Right click inside the code area, select Open Disassembly View to launch the disassembly view.
  4. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.