Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit eb14bb0

Browse files
committed
fix: debugger breakpoints not registered
1 parent f52f47c commit eb14bb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/me/topchetoeu/jscript/engine/debug/SimpleDebugger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,9 @@ private RunResult run(Frame codeFrame, String code) {
474474
@Override public void setBreakpointByUrl(V8Message msg) {
475475
var line = (int)msg.params.number("lineNumber") + 1;
476476
var col = (int)msg.params.number("columnNumber", 0) + 1;
477-
var cond = msg.params.string("condition", null);
477+
var cond = msg.params.string("condition", "").trim();
478478

479+
if (cond.equals("")) cond = null;
479480
if (cond != null) cond = "(" + cond + ")";
480481

481482
Pattern regex;

0 commit comments

Comments
 (0)