Skip to content

Commit

Permalink
debugger fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbeamable committed Feb 25, 2025
1 parent 312271e commit 4373e4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions FadeBasic/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Debugger would emit exit event during partial budget runs.

### Added
- Everything
5 changes: 4 additions & 1 deletion FadeBasic/FadeBasic/Launch/DebugSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,10 @@ public void StartDebugging(int ops = 0)
}


SendExitedMessage();
if (_vm.instructionIndex >= _vm.program.Length || requestedExit)
{
SendExitedMessage();
}
}

}
Expand Down
2 changes: 1 addition & 1 deletion FadeBasic/FadeBasic/Virtual/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public IEnumerator<ExecutionState> Execute(int instructionBatchCount = 1000)
}


private bool isSuspendRequested;
public bool isSuspendRequested;
public void Suspend()
{
isSuspendRequested = true;
Expand Down

0 comments on commit 4373e4f

Please sign in to comment.