Python VSCode: debugging code located in Python virtual environment By Jonathan Taylor on Wednesday, April 17, 2019 In trying to set up a virtual environment(virtualenv) for Python to be used in VSCode, I encountered a situation where I was unable to debug and hit the breakpoints in my code.