HUANGWANG'S BLOG

Debug Python in Visual Studio Code

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
    1.png
  • Open It in VS Code
    2.png
  • Now Add Your First Python Script File
    3.png
  • Type Code on It
    4.png
  • Debug or Run

    In this step, we can change settings in lanuch.json. Detail on this.

    5.png
    6.png

Tips