code-debug
code-debug copied to clipboard
Bugfix
1.fix implicitly type error of LogMessage 2.fix gdb check error, checkCommand success should not warning "Configured debugger ${dbgCommand} not found"
protected checkCommand(debuggerName: string): boolean {
try {
const command = process.platform === 'win32' ? 'where' : 'command -v';
execSync(`${command} ${debuggerName}`, { stdio: 'ignore' });
return true;
} catch (error) {
return false;
}
}