003VsCode中python的安装配置
2019-07-05 本文已影响0人
桃子味的白开水
1,在VScode中安装python插件
![](https://img.haomeiwen.com/i9389098/b59926b9a0d2dfd7.png)
2,在硬盘上新建一个文件夹,打开此文件夹,python都写在这个文件夹中
![](https://img.haomeiwen.com/i9389098/f0e20c163470f335.png)
3,设置python配置文件
![](https://img.haomeiwen.com/i9389098/db9ac75803169c2a.png)
4,在配置文件中,设置python路径。
我的路径是 D:/Python/Python37/python.exe
![](https://img.haomeiwen.com/i9389098/5a953f9582206d23.png)
5,用户设置
![](https://img.haomeiwen.com/i9389098/b6befbc60fc9b47c.png)
6,用户设置内容
![](https://img.haomeiwen.com/i9389098/4ee8a3324bab2afe.png)
7,调试设置,在配置文件中加入"stopOnEntry":true
![](https://img.haomeiwen.com/i9389098/021df023f0970849.png)
8,可以看到文件夹中包含两个配置文件, 设置断点后F5可以调试
![](https://img.haomeiwen.com/i9389098/92065018792f55fc.png)