# debugger: Prevent port collision when attaching to existing node debugger \(\#32862\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a69ebf038aff56be94e6ec5f35b7448dfafaa37f

Requested commit: a69ebf038aff56be94e6ec5f35b7448dfafaa37f

Commit: a69ebf038aff56be94e6ec5f35b7448dfafaa37f

Tree: 155f762da5c4e940dfc64d031e0ee79fafdd29a9

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
debugger: Prevent port collision when attaching to existing node debugger (#32862)

We were translating port configuration incorrectly, using it for both
attach target and debugger port.
This however meant that we were spawning a 2nd process that'd listen on
the same port as the existing debugger.

Closes #32836

Release Notes:

- debugger: Fixed issues with auto-translated Visual Studio Code debug
configs for attaching to existing node debugger instances.
```

## Parents

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

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