How do I enable remote celery debugging in PyCharm?

前端 未结 8 1053
-上瘾入骨i
-上瘾入骨i 2020-12-23 21:11

I\'m trying to find some instructions on how to enable PyCharm debugging within my celery processes on a remote machine. The remote machine is running Ubuntu 14.04.

8条回答
  •  执笔经年
    2020-12-23 21:45

    For Windows, tested in with Celery >= 4.0

    Add a new (Run/Debug) configuration of type "Python":

    Then, Under configuration tab: switch the first option (Target to run) from "Script path" to "Module name" and fill in the value:

    celery.bin.celery
    

    like the snapshot below:

提交回复
热议问题