microsoft/debugpy

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

neilsteyn opened this issue · 1 comments

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

Thanks for the issue. Can you try collecting logs as described here? It should show us why the breakpoints aren't binding:
https://github.com/microsoft/debugpy/wiki/Enable-debugger-logs