diff --git a/src/debugAdapter/goDebug.ts b/src/debugAdapter/goDebug.ts index 4ad857c25..e01320498 100644 --- a/src/debugAdapter/goDebug.ts +++ b/src/debugAdapter/goDebug.ts @@ -271,7 +271,7 @@ class Delve { } else if (typeof launchArgs['useApiV1'] === 'boolean') { this.isApiV1 = launchArgs['useApiV1']; } - this.stackTraceDepth = launchArgs.stackTraceDepth; + this.stackTraceDepth = launchArgs.stackTraceDepth || 50; let mode = launchArgs.mode; let dlvCwd = dirname(program); let isProgramDirectory = false;