Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Add the output option to the delve
Browse files Browse the repository at this point in the history
  • Loading branch information
trknhr committed Mar 7, 2018
1 parent 64104a1 commit 38c87ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments {
/** Optional path to .env file. */
envFile?: string;
backend?: string;
output?: string;
}

process.on('uncaughtException', (err: any) => {
Expand Down Expand Up @@ -301,6 +302,9 @@ class Delve {
if (launchArgs.backend) {
dlvArgs = dlvArgs.concat(['--backend=' + launchArgs.backend]);
}
if (launchArgs.output) {
dlvArgs = dlvArgs.concat(['--output=' + launchArgs.output]);
}
if (launchArgs.args) {
dlvArgs = dlvArgs.concat(['--', ...launchArgs.args]);
}
Expand Down

0 comments on commit 38c87ea

Please sign in to comment.