From a744cda5e0f5caf258d0b4d33536b9cdde257fd5 Mon Sep 17 00:00:00 2001 From: Martin Fleck Date: Fri, 17 Feb 2023 13:40:16 +0100 Subject: [PATCH 1/2] Properly return instruction breakpoints in DebugSession Fixes https://github.com/eclipse-theia/theia/issues/12189 --- packages/debug/src/browser/debug-session.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/debug/src/browser/debug-session.tsx b/packages/debug/src/browser/debug-session.tsx index c8825227121e2..15b66a8087acc 100644 --- a/packages/debug/src/browser/debug-session.tsx +++ b/packages/debug/src/browser/debug-session.tsx @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright (C) 2018 Red Hat, Inc. and others. +// Copyright (C) 2018-2023 Red Hat, Inc. and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at @@ -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())); From 1af031fd60c0f75d091700fb1f8f848742ec64ff Mon Sep 17 00:00:00 2001 From: Martin Fleck Date: Tue, 21 Feb 2023 14:20:12 +0100 Subject: [PATCH 2/2] Fix copyright header --- packages/debug/src/browser/debug-session.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/debug/src/browser/debug-session.tsx b/packages/debug/src/browser/debug-session.tsx index 15b66a8087acc..be5d3a70472aa 100644 --- a/packages/debug/src/browser/debug-session.tsx +++ b/packages/debug/src/browser/debug-session.tsx @@ -1,5 +1,5 @@ // ***************************************************************************** -// Copyright (C) 2018-2023 Red Hat, Inc. and others. +// Copyright (C) 2018 Red Hat, Inc. and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at