Run Python code in Visual Studio Code debug

Source: Internet
Author: User
Tags python script

Microsoft's cross-platform development tool has recently been interested in Microsoft's Visual Studio code. Light weight and simplicity.

Version iterations are also very fast, now nearly 1.3.1 version, the function is also more perfect.

Let's briefly describe how I ran debug Python in vs code today.

Because I have not seen the relevant article description on the Internet. I will find out for myself, the basic environmental construction steps to record.

First, download installs Vscode the latest version, currently is 1.3.1 version. Address self-search, this will not search, that shows no understanding of vscode and interest. You don't have to watch it.

After the installation is complete, open Vscode and install the Python plugin as shown.

Ii. Download the installation of Python, I downloaded the version of 2.7.12. A higher version is also possible. When installing, note the check box and add to path.

After the installation is complete, reopen the Vscode. Check the plugin options on the left to see if the status of the Python plugin is installed successfully. Show enable is already installed successfully.

Iv. Create a new work item folder in Vscode.

V. Create a new text in the working folder and select the Python language.

Six, save the written Python script. Press the F5 key to debug.

Seven, to complete the basic Vscode in the Python debugging run operation. If you are interested, you can continue to explore on your own. Familiar with a tool that should be quite good.

Run Python code in Visual Studio Code debug

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.