vs code 调试python 自用代码

launch.json

{
    "version": "0.2.0", "configurations": [
        {
            "name": "Python3.7.1",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,//是否在第一条语句时程序停止,下面的这个选项都一样
            "pythonPath": "C:/Users/kk/Anaconda3/python.exe",//可执行文件路径
            "program": "${file}",
            "cwd": "${workspaceRoot}",
            "env": {},
            "envFile": "${workspaceRoot}/.env",
            "console": "none",  // 只输出到调试控制台
         }
    ]    
}

你可能感兴趣的:(基础,vscode,调试)