PyCharm 中 Faust 工作线程的调试模式

时间:2021-02-11 08:08:47

标签: pycharm faust

我正在尝试在调试模式下运行 faust worker (https://faust.readthedocs.io)。此刻我这样做了:

enter image description here

如您所见,这不是实际调试。我希望这样:

enter image description here

你能说我做错了什么吗?

1 个答案:

答案 0 :(得分:1)

您必须像这样制作 Python 运行配置才能在 PyCharm 中正确使用调试:

enter image description here

文件(在本例中为 toy_example.py)应提供一个入口点:

if __name__ == '__main__':
    print("Application getting started")
    app.main()
相关问题