diff --git a/arduino-debugger-extension/src/browser/arduino-variable-resolver.ts b/arduino-debugger-extension/src/browser/arduino-variable-resolver.ts index b094f1e1..be5c0434 100644 --- a/arduino-debugger-extension/src/browser/arduino-variable-resolver.ts +++ b/arduino-debugger-extension/src/browser/arduino-variable-resolver.ts @@ -75,7 +75,7 @@ export class ArduinoVariableResolver implements VariableContribution { return undefined; } if (!fileStat.isDirectory && fileStat.uri.endsWith('.elf')) { - return fileStat.uri; + return new URI(fileStat.uri).path.toString(); } let parent: FileStat | undefined; @@ -106,7 +106,7 @@ export class ArduinoVariableResolver implements VariableContribution { bin = parent.children.find(c => c.uri.endsWith('.elf')); } if (bin) { - return bin.uri; + return new URI(bin.uri).path.toString(); } } this.messageService.error('Cannot find sketch binary: ' + hint); diff --git a/arduino-debugger-extension/src/node/debug-adapter/cmsis-debug-session.ts b/arduino-debugger-extension/src/node/debug-adapter/cmsis-debug-session.ts index a22e8d0d..5dffc940 100644 --- a/arduino-debugger-extension/src/node/debug-adapter/cmsis-debug-session.ts +++ b/arduino-debugger-extension/src/node/debug-adapter/cmsis-debug-session.ts @@ -234,7 +234,7 @@ export class CmsisDebugSession extends GDBDebugSession { this.symbolTable = new SymbolTable(args.program, args.objdump); await this.symbolTable.loadSymbols(); } catch (error) { - this.sendEvent(new OutputEvent(`Unable to load debug symbols: ${error.message}`)); + throw new Error(`Unable to load debug symbols: ${error.message}`); } const port = await this.portScanner.findFreePort();