debug: getDebugProtocolBreakpoint: make sure to use the breakpoint id

#99716
This commit is contained in:
isidor
2020-08-17 15:48:21 +02:00
parent 37b2494462
commit d178b14151
@@ -1116,7 +1116,7 @@ export class DebugModel implements IDebugModel {
}
getDebugProtocolBreakpoint(breakpointId: string, sessionId: string): DebugProtocol.Breakpoint | undefined {
const bp = this.breakpoints.find(bp => bp.getId());
const bp = this.breakpoints.find(bp => bp.getId() === breakpointId);
if (bp) {
return bp.getDebugProtocolBreakpoint(sessionId);
}