jerryscript/tests/debugger/do_pending_breakpoints.expected
Zoltan Herczeg 1c64c1aeb7
Fix inserting pending breakpoints. (#2163)
Before this patch the JS execution is started right after the parsing
is completed. The problem is that some parts of the JS code is executed
before the debugger had any chance to insert pending breakpoints due
to network latency. This patch adds a delay after parsing when at least
one pendding breakpoint is available.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2018-01-23 10:47:47 +01:00

25 lines
788 B
Plaintext

Connecting to: localhost:5001
Stopped at tests/debugger/do_pending_breakpoints.js:15
(jerry-debugger) break :1
No breakpoint found, do you want to add a pending breakpoint? (y or [n])
Pending breakpoint at :1
(jerry-debugger) break f
No breakpoint found, do you want to add a pending breakpoint? (y or [n])
Pending breakpoint at f()
(jerry-debugger) list
=== Pending breakpoints ===
1: :1 (pending)
2: f() (pending)
(jerry-debugger) c
out: pending-breakpoints
Breakpoint 3 at <unknown>:1
Breakpoint 4 at <unknown>:3 (in f() at line:2, col:1)
Stopped at breakpoint:3 <unknown>:1
(jerry-debugger) list
=== Active breakpoints ===
3: <unknown>:1
4: <unknown>:3 (in f() at line:2, col:1)
(jerry-debugger) c
Stopped at breakpoint:4 <unknown>:3 (in f() at line:2, col:1)
(jerry-debugger) c