【发布时间】:2019-06-23 13:52:21
【问题描述】:
我正在尝试调试我的 python 代码,但无法访问“sitepackages”方法 vscode 版本 1.35.1 蟒蛇3.6.8
我知道我可以在 launch.json 文件中使用“justMyCode”标志。 我已经尝试了真/假设置。
{
// 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 密钥错误中遇到异常
【问题讨论】:
标签: python-3.x vscode-debugger