# debugger: Fix attaching with DebugPy \(\#34706\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2ac99e7a1158e1e6d3bfd44016fa01af000d5ad7

Requested commit: 2ac99e7a1158e1e6d3bfd44016fa01af000d5ad7

Commit: 2ac99e7a1158e1e6d3bfd44016fa01af000d5ad7

Tree: f4afab67eb747c76f4db2a2cbc871beac9c72d1d

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
debugger: Fix attaching with DebugPy (#34706)

@cole-miller found a root cause of our struggles with attach scenarios;
we did not fetch .so files necessary for attaching to work,
as we were downloading DebugPy source tarballs from GitHub.

This PR does away with it by setting up a virtualenv instead that has
debugpy installed.

Closes #34660
Closes #34575

Release Notes:

- debugger: Fixed attaching with DebugPy. DebugPy is now installed
automatically from pip (instead of GitHub), unless it is present in
active virtual environment. Additionally this should resolve any startup
issues with missing .so on Linux.
```

## Parents

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

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