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

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

问题描述

我正在尝试查找有关如何在远程机器上的 celery 进程中启用 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.

推荐答案

您可以有一个 Run Configuration 来运行您的 celery 工作人员,然后您可以通过以下方式进行调试点击 debug 按钮.以下是我在 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 解释器,然后设置其他配置,如上图.请注意,Working directory 指向安装了 celery 的远程解释器的 bin 文件夹.

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 中启用远程 celery 调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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