Skip to content

Unable to remove instruction breakpoints in Disassembly view when instruction reference changes #289678

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.108.1
  • OS Version: Windows 11

The current issue was identified in the context of developing a debugger extension that uses the Debug Adapter Protocol.

Steps to Reproduce:

  1. Open the Disassembly view during a debug session.

  2. Set an instruction breakpoint on a specific line.

  3. Trigger an action that causes the instruction reference for that memory location to change or refresh (e.g., reloading symbols or certain stepping operations).

  4. Click the breakpoint icon to remove it.

  5. Result: The breakpoint remains active and cannot be toggled off by clicking. 

Technical Analysis:
The issue stems from how breakpoints are identified during the removal flow:

  1. Storage: Instruction breakpoints are stored as InstructionBreakpoint objects containing instructionReference, offset, and address.
  1. Trigger: When clicking a breakpoint in the Disassembly view (disassemblyView.ts L727), removeInstructionBreakpoints() is called using the current element's instruction reference and offset.
  1. The Failure: The logic in debugModel.ts L2072 attempts to find the breakpoint by matching these two fields. If the instruction reference has changed, the lookup fails, and the breakpoint is never removed from the model.

Proposed Solution:
Instead of matching against the volatile instructionReference and offset, the search should be performed using the address.

I suggest updating the removeInstructionBreakpoints() signature to include the address or refactoring the search logic to prioritize the address as a unique identifier for breakpoints within the current disassembly session.

Activity

  1. added
    stale
    on Jan 29, 2026
  2. removed
    stale
    on Feb 2, 2026
  3. added
    bug
    debug
    on Feb 2, 2026
  4. added a commit that references this issue on Apr 16, 2026
  5. added this to the 1.117.0 milestone on Apr 16, 2026
  6. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Apr 16, 2026
  7. locked and limited conversation to collaborators on May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebuginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions