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.
This commit is contained in:
Piotr Osiewicz 2025-07-18 16:28:03 +02:00 committed by GitHub
parent d604b3b291
commit 2ac99e7a11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 98 additions and 94 deletions

1
Cargo.lock generated
View file

@ -4248,6 +4248,7 @@ dependencies = [
"serde",
"serde_json",
"shlex",
"smol",
"task",
"util",
"workspace-hack",