admin管理员组

文章数量:1570794

python无法step into调试的代码

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文件中有一项justMyCode 默认为true,即只在我们写的代码中调试,所以我们把它改为false即可。

"configurations": [

        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false

alse,

本文标签: debuggingskippedframejustMyCodeNote