Skip to content

Test Disassembly view #129161

Closed
Closed
@weinand

Description

Refs: #124163, #125737

Complexity: 4

Create Issue


Thanks to the C++ team (especially @yuehuang010, @xisui-MSFT) we've received PR #125737 which adds the frequently requested Disassembly View to VS Code.

The Disassembly View supports a single instance only and can be opened from an editor of an active debug session if the corresponding debug extension supports it. The view shows the disassembled source of the editor's content and supports instruction stepping and instruction breakpoints.

Today two debug extensions support the Disassembly View: "C++" and "Mock Debug" (shown in the following recording).

2021-07-22_10-31-24 (1)

C++ setup

Mock Debug Setup

  • install latest "Mock Debug" extension from the Marketplace.
  • create a Markdown file "test.md" and copy the contents of this link into it.
  • set a breakpoint in line 51
  • from the editor's title area select the "Debug File" action from the drop down item:
    2021-07-26_13-37-15
  • once you hit the breakpoint, run the "Open Disassembly View" action from the markdown editor's context menu.

What to test:

  • Right Click menu in the editor should show "Open Disassembly View" only for supported debuggers in an active debug session.
  • Disassembly View:
    • Scrolling up and down should be smooth and infinite, text content should expand
    • Current instruction marker (yellow left pointing arrow) should match with source code event while stepping.
    • When disassembly view is in focus, stepping In/out/back will step individual instructions.
    • Switch back to source code resume normal stepping behavior.
    • Click on callstack should jump to that instruction address (if possible), when disassembly view is in focus.
  • Add and Remove Instruction Breakpoints with the Disassembly View.
    • Added breakpoints should appear in the Breakpoint View List.
    • Remove instruction breakpoint or by breakpoint view list, both should update.
    • Click on address should open to breakpoint.
    • Instruction breakpoints should survive debug sessions (but not VS Code restarts).

Reference Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    debugDebug viewlet, configurations, breakpoints, adapter issuestestplan-item

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions