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