【问题标题】:VsCode Debugging python code unable to access local sitepackagesVsCode调试python代码无法访问本地站点包
【发布时间】: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


    【解决方案1】:

    这个笑话在我身上,问题是因为我在调试模块的断点部分设置了“未捕获的异常”和“引发的异常”复选框设置为“开启”,这似乎是一种解决方法,但它解决了我的问题问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-26
      • 2021-03-21
      • 2021-05-15
      • 1970-01-01
      • 2019-04-02
      • 2020-10-30
      • 2022-11-15
      • 2018-03-31
      相关资源
      最近更新 更多