【问题标题】:Showing Full Call Stack when Python Debugging in VSCode在 VSCode 中进行 Python 调试时显示完整的调用堆栈
【发布时间】:2020-09-15 08:10:28
【问题描述】:

我正在使用 VSCode 中的 Python 调试器来调试 Flask 应用程序。我已经设置了一个断点。然而,当我检查调用堆栈时,我只看到我的代码而不是完整的堆栈(应该包括 Flask、Werkzeug 等)。如何配置/查看完整的调用堆栈,而不仅仅是应用程序?

@app.route('/')
def index():
    return '' # breakpoint

产量:

【问题讨论】:

    标签: python visual-studio-code


    【解决方案1】:

    根据Visual Studio Code - Python debugging - Step into the code of external functions when executing,您需要将"justMyCode": false 添加到您的启动配置中。

    【讨论】:

      猜你喜欢
      • 2017-11-04
      • 2016-07-23
      • 2012-05-06
      • 2014-11-13
      • 2013-03-04
      • 2018-03-18
      • 2016-08-03
      • 2013-09-27
      • 2016-03-16
      相关资源
      最近更新 更多