VS code 调试时默认启用
justMyCode
配置,使得库代码无法调试,本文记录停用该选项调试一切代码的方法。
修改 launch.json
新建
launch.json
文件,在配置configurations
中加入"justMyCode": false,
一行:
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: 当前文件",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
}
]
}
- “justMyCode”: false