diff --git a/src/debugAdapter/goDebug.ts b/src/debugAdapter/goDebug.ts index f3318692a..47e133a6a 100644 --- a/src/debugAdapter/goDebug.ts +++ b/src/debugAdapter/goDebug.ts @@ -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) => { @@ -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]); }