Python 3.x VsCode调试python代码无法访问本地sitepackages
我正在尝试调试python代码,但无法访问“sitepackages”方法 vscode版本1.35.1 python 3.6.8 我知道我可以在launch.json文件中使用“justMyCode”标志。 我尝试了正确/错误设置Python 3.x VsCode调试python代码无法访问本地sitepackages,python-3.x,vscode-debugger,Python 3.x,Vscode Debugger,我正在尝试调试python代码,但无法访问“sitepackages”方法 vscode版本1.35.1 python 3.6.8 我知道我可以在launch.json文件中使用“justMyCode”标志。 我尝试了正确/错误设置 { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For
{
// 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并尝试介入该方法时,我会收到“无法加载源“”:源不可用”消息。
当标志设置为false时:我在pkgutil.py key error中得到了一个异常这个笑话是我开的,问题是因为我在调试模块的BreakpsSection中设置了“未捕获的例外”和“引发的异常”复选框,设置为“开”,这似乎是一个解决方法,但它解决了我的问题好吧,笑话在我身上,问题是因为我在调试模块的breakpointssection中设置了“uncaught expetions”和“raised exceptions”复选框,并将其设置为“ON”。这似乎是一种解决方法,但它解决了我的问题