我想为 VSCode 中的 python 项目将
justMyCode
设置为 false。
所以我在项目根文件夹下的launch.json
文件夹中创建了一个.vscode
文件,内容如下:
{
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal", // <== adding/deleting this makes no difference
"env": {"PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT": "5"}, // <== I'd like to have this too
"justMyCode": false,
}
],
"debug.allowBreakpointsEverywhere": true,
"jupyter.debugJustMyCode": false,
}
之后,调试器不会启动。代码在调试困难之外运行良好。
我应该修改什么?