Debug Python in Visual Studio Code
Sep 11, 2018
Some Nonsense
Before I usually debug python in PyCharm, it is bloated but convenient. Until I reinstall my Laptop’s system because of some repairs, I want to try some new method to program. By the way, VS Code is a good IDE or Code Editor, and I used before.
Install Python on Windows 10
Just select the version you want and download the install file on this website.
Configuring Environment Variables
Enter Environment Variables then edit user path. add the path of python to it.
Install VS Code
Just finish it via this website and install Python extension in VS Code.
Start Your “Hello World”
create a work folder
Open It in VS Code
Now Add Your First Python Script File
Type Code on It
Debug or Run
In this step, we can change settings in lanuch.json. Detail on this.
Tips
- You can install many extensions in Marketplace.
- Not only for Python
- Configuring Python environments