Skip to content

Commit

Permalink
Fix linux step on leave function
Browse files Browse the repository at this point in the history
close #131
  • Loading branch information
yuxiaomao committed May 27, 2024
1 parent 70dd326 commit 2f81ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hld/Debugger.hx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Debugger {
while( true ) {
cmd = api.wait(customTimeout == null ? 1000 : Math.ceil(customTimeout * 1000));

if( cmd.r == Breakpoint && nextStep >= 0 ) {
if( cmd.r == Breakpoint && (nextStep >= 0 || onStep) ) {
// On Linux, singlestep is not reset
cmd.r = SingleStep;
singleStep(cmd.tid,false);
Expand Down

0 comments on commit 2f81ec0

Please sign in to comment.