mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-24 19:56:40 +00:00
[debugger] Convert URIs to paths
This commit is contained in:
parent
36ac97d95d
commit
68db44fa49
@ -75,7 +75,7 @@ export class ArduinoVariableResolver implements VariableContribution {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (!fileStat.isDirectory && fileStat.uri.endsWith('.elf')) {
|
if (!fileStat.isDirectory && fileStat.uri.endsWith('.elf')) {
|
||||||
return fileStat.uri;
|
return new URI(fileStat.uri).path.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
let parent: FileStat | undefined;
|
let parent: FileStat | undefined;
|
||||||
@ -106,7 +106,7 @@ export class ArduinoVariableResolver implements VariableContribution {
|
|||||||
bin = parent.children.find(c => c.uri.endsWith('.elf'));
|
bin = parent.children.find(c => c.uri.endsWith('.elf'));
|
||||||
}
|
}
|
||||||
if (bin) {
|
if (bin) {
|
||||||
return bin.uri;
|
return new URI(bin.uri).path.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.messageService.error('Cannot find sketch binary: ' + hint);
|
this.messageService.error('Cannot find sketch binary: ' + hint);
|
||||||
|
@ -234,7 +234,7 @@ export class CmsisDebugSession extends GDBDebugSession {
|
|||||||
this.symbolTable = new SymbolTable(args.program, args.objdump);
|
this.symbolTable = new SymbolTable(args.program, args.objdump);
|
||||||
await this.symbolTable.loadSymbols();
|
await this.symbolTable.loadSymbols();
|
||||||
} catch (error) {
|
} 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();
|
const port = await this.portScanner.findFreePort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user