mrdb.c: do not skip OP_JMP on step execution.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-02 16:19:08 +09:00
parent e93642d53f
commit 504d05232d
+1 -1
View File
@@ -574,7 +574,7 @@ mrb_code_fetch_hook(mrb_state *mrb, const mrb_irep *irep, const mrb_code *pc, mr
switch (dbg->xm) {
case DBG_STEP:
if (!file || (dbg->prvfile == file && dbg->prvline == line)) {
if (*pc != OP_JMP && (!file || (dbg->prvfile == file && dbg->prvline == line))) {
return;
}
dbg->method_bpno = 0;