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

Abierto
#862 1 comentario 0 reacciones 1 asignado Ver en GitHub

@eleanorjboyd ya está trabajando en esto.

Desde el 4/11/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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
Lenguaje dominante
TypeScript
Estrellas
181
Forks
126
Merge medio
2 d 3 h
PR fusionados (30 d)
3

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/vscode-python-debugger

Todos los issues de microsoft/vscode-python-debugger

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.