From d178b14151ded5dc0f084e938a6791a2a847ca87 Mon Sep 17 00:00:00 2001 From: isidor Date: Mon, 17 Aug 2020 15:48:21 +0200 Subject: [PATCH] debug: getDebugProtocolBreakpoint: make sure to use the breakpoint id #99716 --- src/vs/workbench/contrib/debug/common/debugModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/debug/common/debugModel.ts b/src/vs/workbench/contrib/debug/common/debugModel.ts index 80060824d0d..efa503f6f06 100644 --- a/src/vs/workbench/contrib/debug/common/debugModel.ts +++ b/src/vs/workbench/contrib/debug/common/debugModel.ts @@ -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); }