fix: debugger breakpoints not registered

This commit is contained in:
TopchetoEU 2023-11-25 20:09:47 +02:00
parent f52f47cdb4
commit eb14bb080c
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -474,8 +474,9 @@ public class SimpleDebugger implements Debugger {
@Override public void setBreakpointByUrl(V8Message msg) {
var line = (int)msg.params.number("lineNumber") + 1;
var col = (int)msg.params.number("columnNumber", 0) + 1;
var cond = msg.params.string("condition", null);
var cond = msg.params.string("condition", "").trim();
if (cond.equals("")) cond = null;
if (cond != null) cond = "(" + cond + ")";
Pattern regex;