Debugging Python code in a venv in WSL always takes two tries

Offen
#862 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@eleanorjboyd arbeitet bereits daran.

Seit 04.11.2025.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

triage-needed

Testing #859

I'm using an Ubuntu WSL instance with pwsh as the default terminal profile.
When I debug a file with Python and with the Python Environments extension enabled, the terminal first runs the debugger commands, and then it cancels that command and runs the venv enablement command. As a result, the debugger fails to launch. On the second attempt, the debugger successfully runs the file because it is not intercepted by the venv enablement command. It successfully hits the breakpoint.

First attempt

Terminal showing cancelled debugger start command Timeout error dialog

Second attempt

Python debugger hitting the breakpoint
Vorherrschende Sprache
TypeScript
Sterne
181
Forks
126
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
3

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/vscode-python-debugger

Alle Issues in microsoft/vscode-python-debugger

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.