Skip to content

Commit

Permalink
Properly return instruction breakpoints in DebugSession (#12190)
Browse files Browse the repository at this point in the history
* Properly return instruction breakpoints in DebugSession

Fixes #12189
  • Loading branch information
martin-fleck-at authored Feb 21, 2023
1 parent 798366f commit 2266025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/debug/src/browser/debug-session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ export class DebugSession implements CompositeTreeElement {

getInstructionBreakpoints(): DebugInstructionBreakpoint[] {
if (this.capabilities.supportsInstructionBreakpoints) {
return this.getBreakpoints(BreakpointManager.FUNCTION_URI)
return this.getBreakpoints(BreakpointManager.INSTRUCTION_URI)
.filter((breakpoint): breakpoint is DebugInstructionBreakpoint => breakpoint instanceof DebugInstructionBreakpoint);
}
return this.breakpoints.getInstructionBreakpoints().map(origin => new DebugInstructionBreakpoint(origin, this.asDebugBreakpointOptions()));
Expand Down

0 comments on commit 2266025

Please sign in to comment.