MCPcopy Create free account
hub / github.com/Marus/cortex-debug / getServerCwd

Method getServerCwd

src/gdb.ts:746–757  ·  view source on GitHub ↗
(serverExe: string)

Source from the content-addressed store, hash-verified

744 // that are not so quirky.
745 //
746 private getServerCwd(serverExe: string) {
747 let serverCwd = this.args.cwd || process.cwd();
748 if (this.args.serverCwd) {
749 serverCwd = this.args.serverCwd;
750 } else if (this.args.servertype === 'stlink') {
751 serverCwd = path.dirname(serverExe) || '.';
752 if (serverCwd !== '.') {
753 this.handleMsg('log', `Setting GDB-Server CWD: ${serverCwd}\n`);
754 }
755 }
756 return serverCwd;
757 }
758
759 private notifyStopped(doCustom = true) {
760 this.sendEvent(new StoppedEvent(this.stoppedReason, this.currentThreadId, true));

Callers 1

Calls 1

handleMsgMethod · 0.95

Tested by

no test coverage detected