Very new to Python and VSCode (and stackoverflow). I've been using both for about 3 months now just fine, up until recently that is.
When trying to run any basic Python program in the debugger, the popup The Python path in your debug configuration is invalid. Source: Python(Extension) appears and the debugger won't run. I go to my launch.json file and sure enough, I have the path to where Python is set up.
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"python": "${command:python.interpreterPath}"
}
]
}
Messing with settings.json doesn't help anything either because I do have the path to Python set up, but the debugger still won't run. I am at a loss what to do here. I have never gone into my .json files in the past before, nor have I ever had to configure my Python path after installing VSCode for the first time.
I was facing the same problem. Here's how I fixed it without having to uninstall:
Look at this image for reference:

Click on the "Python 3.8.3 32-bit" down there in the corner (the version maybe different for you) and select your debugger or specify the location if it's not already there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With