How do I enable remote celery debugging in PyCharm?

前端 未结 8 1052
-上瘾入骨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:34

    You can have a Run Configuration to run your celery workers which then allows you to debug simply by clicking the debug button. Here is how I set that up in PyCharm 5:

    You need to set up a remote python interpreter and then set other configs like the image above. Note that the Working directory is pointing to the bin folder of the remote interpreter with celery installed.

提交回复
热议问题