Configuring the Python debug plug-in for virtual Studio code (Ubuntu14.04)

Source: Internet
Author: User

See the following Python for virtual Studio Code plugin link for details:

Python

Installation dependencies

1. Python is installed on the current system

Path to Python can configured

2, Pylint is installed for linting (optional)

sudo apt-get install Pylint

3, PEP8 is installed for linting (optional)

sudo apt-get install PEP8

4, Flake8 is installed for linting (optional)

sudo apt-get install Flake8

5, AUTOPEP8 is installed for code formatting (optional)

sudo apt-get install PEP8

sudo apt-get install--upgrade AUTOPEP8

6, YAPF is installed for code formatting (optional)

sudo apt-get install Yapf

7. Nosetests for unit testing (optional)

sudo apt-get install nose

Can not install to GitHub to find source installation, generally with Python setup.py install can.

Install Python for Vscode

Open the Vscode interface, CTRL+P and enter ext install Python, will display the eligible plug-ins, click Install.

Configure Debug

{"Name":The Python",The type":The Python",The request" Launch "  "Stoponentry": true,  "Externalconsole": false,  "Program":  "${file}"  "Debugoptions": [ "Waitonabnormalexit Waitonnormalexit  "Redirectoutput"}    

Configuring the Python debug plug-in for virtual Studio code (Ubuntu14.04)

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.