VsCode 调试 python 代码无法访问本地站点包

VsCode Debugging python code unable to access local sitepackages

我正在尝试调试我的 python 代码但无法访问 'sitepackages' 方法 vscode 版本 1.35.1 python3.6.8

我知道我可以在 launch.json 文件中使用 'justMyCode' 标志。 true/false 两种设置我都试过了。

{
      // Use IntelliSense to learn about possible attributes.
     // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/? 
    linkid=830387
    "version": "0.2.0",
    "configurations": [        

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

}

当我将该值设置为 True 并尝试进入该方法时,我收到 'Could not load source '': Source unavailable' 消息。 标志设置为 false:我在 pkgutil.py 键错误

中遇到异常

我开玩笑了,问题是因为我在调试模块的断点部分设置了 'uncaught excpetions' & 'raised exceptions' 复选框设置为 'ON' 似乎是一个解决方法,但它解决了我的问题