# debugger: Allow users to include PickProcessId in debug tasks and resolve Pid \(\#42913\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 56401fc99cddbf02f9c1e9ca5f9f849f909b5f83

Requested commit: 56401fc99cddbf02f9c1e9ca5f9f849f909b5f83

Commit: 56401fc99cddbf02f9c1e9ca5f9f849f909b5f83

Tree: 1d2746ddd6251d71d9345beabdb7402b48542dc6

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Allow users to include PickProcessId in debug tasks and resolve Pid (#42913)

Closes #33286

This PR adds support for Zed's `$ZED_PICK_PID` command in debug
configurations, which allows users to select a process to attach to at
debug time. When this variable is present in a debug configuration, Zed
automatically opens a process picker modal.

Follow up for this will be integrating this variable in the task system
instead of just the debug configuration system.

Release Notes:

- Added `$ZED_PICK_PID` variable for debug configurations, allowing
users to select which process to attach the debugger to at runtime

---------

Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

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

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