Skip to content

Commit

Permalink
Prevent End statement to trigger the Micro Debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
lvcabral committed Jan 20, 2025
1 parent ab910a9 commit 377bd8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/interpreter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,8 @@ export class Interpreter implements Expr.Visitor<BrsType>, Stmt.Visitor<BrsType>
if (
!this._tryMode &&
this.options.stopOnCrash &&
!(err instanceof Stmt.BlockEnd)
!(err instanceof Stmt.BlockEnd) &&
!core.terminateReasons.includes(err.message)
) {
// Enable Micro Debugger on app crash
let errNumber = RuntimeErrorDetail.Internal.errno;
Expand Down

0 comments on commit 377bd8e

Please sign in to comment.