本文最后更新于:2023年12月5日 下午

VS code 调试时默认启用 justMyCode 配置,使得库代码无法调试,本文记录停用该选项调试一切代码的方法。

错误信息

在调试非自己的代码时会自动跳过并给出如下提示:

1
2
Frame skipped from debugging during step-in.
Note: may have been skipped because of "justMyCode" option (default == true). Try setting "justMyCode": false in the debug configuration (e.g., launch.json).

修改 launch.json

新建 launch.json 文件,在配置configurations中加入 "justMyCode": false,一行:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
// 使用 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


文章链接:
https://www.zywvvd.com/notes/environment/vs-code/vs-code-justmycode/justmycode/


“觉得不错的话,给点打赏吧 ୧(๑•̀⌄•́๑)૭”

微信二维码

微信支付

支付宝二维码

支付宝支付

VS code 停用 justMyCode 调试库代码
https://www.zywvvd.com/notes/environment/vs-code/vs-code-justmycode/justmycode/
作者
Yiwei Zhang
发布于
2021年2月8日
许可协议