• 为Virtual Studio Code配置Python调试插件(Ubuntu14.04)


    详情见以下python for virtual studio code插件的链接:

    python

    安装依赖

    1、Python is installed on the current system

      Path to python can be 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

    安装不了的去github找源码安装,一般用python setup.py install即可。

    安装python for VSCode

    打开VSCode界面,Ctrl+p并输入ext install python,即会显示符合条件的插件,点击安装即可。

     配置Debug

    {
        "name": "Python",
        "type": "python",
        "request": "launch",
        "stopOnEntry": true,
        "externalConsole":false,
        "program": "${file}",
        "debugOptions": [
            "WaitOnAbnormalExit",
            "WaitOnNormalExit",
            "RedirectOutput"
        ]
    }

     

     

  • 相关阅读:
    洛谷P1085 不高兴的津津
    为什么要学习算法
    洛谷P1001 A+B Problem
    计算机问题求解周期
    洛谷P1000 超级玛丽游戏
    洛谷P1421 小玉买文具
    CF359D Pair of Numbers(ST+二分)
    2020.10.7
    2020.10.10
    2020.10.8
  • 原文地址:https://www.cnblogs.com/zhuangliu/p/5333245.html
Copyright © 2020-2023  润新知