Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Microsoft Python Debugger not working in a virtual environment created with venv module on windows

Open
#1,592 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, vscode
Domain
devtools

Research direction

Start by reproducing the report on Windows 11 with Python 3.8, a venv-created environment, VS Code, and debugpy 1.8.1, then compare breakpoint behavior inside and outside the environment. No repository files or tests are named; the issue is done when the cause is isolated and breakpoints stop execution in the virtual environment.

Written by the indexing model from the issue text.

Description

bug

I have a virtual environment setup with the venv module, but the debugger is not picking up the breakpoints I set, it just runs the script without stopping at the breakpoints. It works when I'm not using virtual environment.

Environment data

  • debugpy version: 1.8.1 (or latest microsoft python debugger extention for vs code)
  • OS: Windows 11
  • Python version: 3.8.0
  • Using VS Code (version: time of writing)

python interpreter is pointing to the environment
image

Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.