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 调试?


- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01