Skip to content

Commit 6cb86e3

Browse files
author
Daniel Balla
committed
Fix an issue while debugging with static snapshots
Co-authored-by: Robert Fancsik frobert@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
1 parent 22b0851 commit 6cb86e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jerry-core/vm/vm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,8 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
32553255
| JERRY_DEBUGGER_VM_EXCEPTION_THROWN);
32563256

32573257
if ((JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED)
3258-
&& !(frame_ctx_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_DEBUGGER_IGNORE)
3258+
&& !(frame_ctx_p->bytecode_header_p->status_flags
3259+
& (CBC_CODE_FLAGS_DEBUGGER_IGNORE | CBC_CODE_FLAGS_STATIC_FUNCTION))
32593260
&& !(JERRY_CONTEXT (debugger_flags) & dont_stop))
32603261
{
32613262
/* Save the error to a local value, because the engine enters breakpoint mode after,

0 commit comments

Comments
 (0)