microsoft / microsoft/vscode-cpptools

Disassembly view fails to load when starting a debug session with pre-set instruction breakpoints

Open
#13,367 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug debugger help wanted
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment
  • OS and version: Windows 10
  • VS Code: 1.98
  • C/C++ extension: 1.23.6
  • OS and version of remote machine (if applicable):
  • GDB / LLDB version: GDB 11.1
Bug Summary and Steps to Reproduce

Bug Summary:

When initiating a debug session in Visual Studio Code with pre-set instruction breakpoints, the disassembly view does not load as expected. the disassembly view has a "disassembly not available" in the window.

Steps to reproduce:

  1. Start any debug session in Visual Studio Code.
  2. Open the disassembly view.
  3. Set instruction breakpoints in the code.
  4. Stop the debug session.
  5. Start the debug session again (while the instruction breakpoints are still set).
  6. Open the disassembly view.
  7. Observe that the disassembly view will not load correctly and will display a "disassembly view not available"
    message.
Debugger Configurations
you can try any debug configuration
Debugger Logs
I don't have the logs, but if you try to reproduce you will see that when trying to start a debug session with a pre-set instruction breakpoint, you will get a disassembly request of size 1 which I assume is what cause the bug.
Other Extensions

No response

Additional Information

No response

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 in VS Code 1.98 with the C/C++ extension, GDB 11.1, any debug configuration, and a pre-set instruction breakpoint. Compare the disassembly request during the second session, especially the reported size-1 request, and confirm that the disassembly view loads instead of showing “disassembly not available.”

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.