# Fix attach to process in Go debugger \(\#43898\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/60312a3b04bfe41e76b8fb0ff6688fcdc83c7ecb)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 60312a3b04bfe41e76b8fb0ff6688fcdc83c7ecb

Requested commit: 60312a3b04bfe41e76b8fb0ff6688fcdc83c7ecb

Commit: 60312a3b04bfe41e76b8fb0ff6688fcdc83c7ecb

Tree: dea609f87110d3b817da756d915af11b188423db

Author: Mark Polonsky

Committer: GitHub

## Message

````
Fix attach to process in Go debugger (#43898)

Release Notes:

- Fixed the behavior of the attach to process feature for the Golang
debugger.

**Step to reprorduce:**
1. Build and run golang binary
2. In Zed open debugger
3. Go to Attach tab
4. Select the binary you just built from the list
**Actual result:** 
```
Tried to launch debugger with: {
  "request": "attach",
  "mode": "debug",
  "processId": 74702,
  "stopOnEntry": false,
  "cwd": "/path/to/the/current/working/directory"
}
error: Failed to attach: invalid debug configuration - unsupported 'mode' attribute "debug" 
```

**Expected result:** The debugger can attach to the process.


According to the [Delve
documentation](https://github.com/go-delve/delve/tree/master/Documentation/api/dap#launch-and-attach-configurations)
`attach` request supports `local` and `remote` values only
````

## Parents

- [d9b35234594e46cb8671f7b9826bfe4033de11a3](https://git.cafe/gitcafe/zed/commit/d9b35234594e46cb8671f7b9826bfe4033de11a3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/60312a3b04bfe41e76b8fb0ff6688fcdc83c7ecb?format=markdown)
