diff --git a/src/debugSession/BrightScriptDebugSession.ts b/src/debugSession/BrightScriptDebugSession.ts index fefd61f..53bbb26 100644 --- a/src/debugSession/BrightScriptDebugSession.ts +++ b/src/debugSession/BrightScriptDebugSession.ts @@ -1558,7 +1558,7 @@ export class BrightScriptDebugSession extends BaseDebugSession { v.frameId = frameId; v.type = result.type; v.presentationHint = result.presentationHint ? { kind: result.presentationHint } : undefined; - if (v.name === '__brs_err__' || v.name === '__brs_errcond__') { + if (util.isBrsExceptionsVariable(v.name)) { v.presentationHint = { kind: 'virtual' }; } diff --git a/src/util.ts b/src/util.ts index d43d4fc..a875f5b 100644 --- a/src/util.ts +++ b/src/util.ts @@ -470,6 +470,10 @@ class Util { this.minPort = port + 1; return port; } + + public isBrsExceptionsVariable(variableName: string) { + return variableName.startsWith('__brs_'); + } } export function defer() {