microsoft / microsoft/vscode-python-debugger

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

Aberta
#862 1 comentário 0 reações 1 responsável Ver no GitHub

@eleanorjboyd já está trabalhando nisso.

Desde 4/11/2025.

triage-needed
Linguagem predominante
TypeScript
Estrelas
180
Forks
126
Merge médio
2d 3h
PRs com merge (30d)
3

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.