(serverExe: string)
| 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)); |
no test coverage detected