如何在PyCharm中启用远程芹菜调试? [英] How do I enable remote celery debugging in PyCharm?

查看:545
本文介绍了如何在PyCharm中启用远程芹菜调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到有关如何在远程计算机上的芹菜进程中启用PyCharm调试的一些说明。远程机器正在运行Ubuntu 14.04。

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.

我正在运行PyCharm 4.x。

I am running PyCharm 4.x.

一些其他暗示其他信息的信息可以正常工作,但无法找到任何适当的指令。

I've seen some other information that alludes others have it working, but haven't been able to locate any proper instructions.

推荐答案

您可以一个运行配置运行您的芹菜工作人员,然后允许您通过单击调试按钮。这是我如何在PyCharm 5中设置的:

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:

您需要设置一个远程python解释器,然后设置其他配置,如上图所示。请注意,工作目录指向远程解释器的 bin 文件夹,其中 celery 安装。

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.

这篇关于如何在PyCharm中启用远程芹菜调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆