microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.79k stars 130 forks source link

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

Open neilsteyn opened 2 months ago

neilsteyn commented 2 months ago

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

python interpreter is pointing to the environment image

rchiodo commented 2 months ago

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