How can I debug Python 3 code in Visual Studio Code?

后端 未结 6 595
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 04:38

I want to debug a project written in Python 3 in Visual Studio Code, but I can\'t seem to find any way of specifying interpreter or Python version in the launch.json file.

6条回答
  •  无人及你
    2020-12-15 05:13

    An extra note for those using the Anaconda Python distribution by continuum analytics: you may find my experience useful.

    I'm using Don Jayamanne's Python extension and run the "Select Workspace Interpreter" command, but still found I was getting linting advice for the wrong version of Python.

    The fix that worked for me was installing the Pylint package for Anaconda:

    conda install -c anaconda pylint
    

提交回复
热议问题