How do I enable remote celery debugging in PyCharm?(如何在 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 调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 PyCharm 中启用远程 celery 调试?


基础教程推荐
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 筛选NumPy数组 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01