diff --git a/commands/dap.go b/commands/dap.go index 8beddb1af..2b975d000 100644 --- a/commands/dap.go +++ b/commands/dap.go @@ -61,6 +61,9 @@ func (d *adapterProtocolDebugger) Start(printer *progress.Printer, opts *BuildOp if cfg.ContextPath != "" { opts.ContextPath = cfg.ContextPath } + if cfg.Target != "" { + opts.Target = cfg.Target + } return nil }