. Advertisement .
..3..
. Advertisement .
..4..
I get the “the python path in your debug configuration is invalid” issue when trying to Debug a simple Python program with the Python extension, a pop-up appears on the right side of the screen “The Python path in your debug configuration is invalid”. Here is the detail of the error I got the error message:
The Python path in your debug configuration is invalid
Please give me some advice to solve this problem.
The cause: Vscode is not able to find the python path or it is not yet set.
Solution: I recommend 2 methods to fix this issue:
.venv/Script/python
, or choose the python path from your local machine’s installation.Add python path in
vscode
File - Preferences - Settings
.python.exe
at the end."python.pythonPath": "C:\\Users\\<your_user_name>\\AppData\\Local\\Programs\\Python\\Python38\\python.exe