如何在 PyCharm 中启用远程 celery 调试?

编程入门 行业动态 更新时间:2024-10-25 22:23:50
本文介绍了如何在 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 调试?

本文发布于:2023-11-24 04:14:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623928.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   PyCharm   celery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!