Skip to content

Commit

Permalink
Better exec recovery (#142)
Browse files Browse the repository at this point in the history
* More graceful shutdown

* remove unnecessary test

* Don't store failed exec commands
  • Loading branch information
TwitchBronBron committed Mar 10, 2023
1 parent b119986 commit ebf9a52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/debugSession/BrightScriptDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,9 @@ export class BrightScriptDebugSession extends BaseDebugSession {
let statement = `${arrayVarName}[${varIndex}] = ${args.expression}`;
args.expression = `${arrayVarName}[${varIndex}]`;
let commandResults = await this.rokuAdapter.evaluate(statement, args.frameId);
if (commandResults.type === 'error') {
throw new Error(commandResults.message);
}
variablePath = [arrayVarName, varIndex.toString()];
}

Expand Down

0 comments on commit ebf9a52

Please sign in to comment.