Skip to content

Commit f188dad

Browse files
committed
Prevent End statement to trigger the Micro Debugger
1 parent 9915530 commit f188dad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/interpreter/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,8 @@ export class Interpreter implements Expr.Visitor<BrsType>, Stmt.Visitor<BrsType>
12231223
if (
12241224
!this._tryMode &&
12251225
this.options.stopOnCrash &&
1226-
!(err instanceof Stmt.BlockEnd)
1226+
!(err instanceof Stmt.BlockEnd) &&
1227+
!core.terminateReasons.includes(err.message)
12271228
) {
12281229
// Enable Micro Debugger on app crash
12291230
let errNumber = RuntimeErrorDetail.Internal.errno;

0 commit comments

Comments
 (0)