service/dap: log working directory of launch program (#2447)

This commit is contained in:
Suzy Mueller 2021-04-23 09:17:38 -04:00 committed by GitHub
parent 6a85f34966
commit ee5729e107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -630,6 +630,7 @@ func (s *Server) onLaunchRequest(request *dap.LaunchRequest) {
s.config.Debugger.WorkingDir = wdParsed
}
s.log.Debugf("running program in %s\n", s.config.Debugger.WorkingDir)
if noDebug, ok := request.Arguments["noDebug"].(bool); ok && noDebug {
s.mu.Lock()
cmd, err := s.startNoDebugProcess(program, targetArgs, s.config.Debugger.WorkingDir)