2085
let removed: InstructionBreakpoint[] = [];
2086
if (address !== undefined) {
2087
>
// Prefer matching by resolved memory address: `instructionReference` is
debugModel.ts
2088
>
// allowed by the Debug Adapter Protocol to change between disassemble
2089
>
// requests (e.g. after symbol reloads), so matching on reference+offset
2090
>
// alone would fail to locate the breakpoint that the user is trying to
2091
>
// toggle off. The `address` on an `InstructionBreakpoint` is the stable
2092
>
// resolved memory address and uniquely identifies it.
2093
>
for (let i = 0; i < this.instructionBreakpoints.length; i++) {
2094
>
const ibp = this.instructionBreakpoints[i];
2095
>
if (ibp.address === address) {
2096
>
removed.push(ibp);
2097
>
this.instructionBreakpoints.splice(i--, 1);
2098
>
}
2099
>
}
2100
} else if (instructionReference) {
2101
for (let i = 0; i < this.instructionBreakpoints.length; i++) {