From acc48f4532c4f30d5b189b72a5eb00ee8353bca9 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 13 Feb 2019 19:00:37 +0300 Subject: [PATCH] JS: fix inability to re-attach to the same debugger --- .../src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java b/tools/chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java index a8fffa011..0fadefd62 100644 --- a/tools/chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java +++ b/tools/chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java @@ -334,6 +334,7 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC RDPNativeBreakpoint nativeBreakpoint = breakpoint.nativeBreakpoint; breakpoint.nativeBreakpoint = null; nativeBreakpoint.breakpoints.remove(breakpoint); + breakpoints.remove(breakpoint); return releaseNativeBreakpoint(nativeBreakpoint, breakpoint); }