From 30ef1fe2a8e3d4131c795cc54920b2015c2676fa Mon Sep 17 00:00:00 2001 From: peterdell Date: Sat, 31 Aug 2019 00:32:42 +0200 Subject: [PATCH] If the "Skip All Breakpoints" option is active, breakpoints are now correctly skipped. --- .../ide/asm/editor/AssemblerEditorCompileCommand.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/com.wudsn.ide.asm/src/com/wudsn/ide/asm/editor/AssemblerEditorCompileCommand.java b/com.wudsn.ide.asm/src/com/wudsn/ide/asm/editor/AssemblerEditorCompileCommand.java index de7a61a4..531ec20b 100644 --- a/com.wudsn.ide.asm/src/com/wudsn/ide/asm/editor/AssemblerEditorCompileCommand.java +++ b/com.wudsn.ide.asm/src/com/wudsn/ide/asm/editor/AssemblerEditorCompileCommand.java @@ -436,7 +436,12 @@ final class AssemblerEditorCompileCommand { } File breakpointsFile = runner.createBreakpointsFile(files); IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager(); - IBreakpoint breakpoints[] = breakpointManager.getBreakpoints(AssemblerBreakpoint.DEBUG_MODEL_ID); + IBreakpoint breakpoints[]; + if (breakpointManager.isEnabled()) { + breakpoints = breakpointManager.getBreakpoints(AssemblerBreakpoint.DEBUG_MODEL_ID); + } else { + breakpoints = new IBreakpoint[0]; + } if (breakpointsFile == null) { if (breakpoints.length > 0) { // WARNING: Breakpoints will be ignored because the application