Has anyone got debugger working with celery?

Just wonderd if anyone has got this working, can i have a how to please

3 comments
Comment actions Permalink

I have managed to get Pycharm to remote debug celery tasks
add the pycharm-debug.egg to project

The create a  remote debug configuration
and add the following to your celery task

from pydev import pydevd
pydevd.settrace('localhost', port=6901, stdoutToServer=True, stderrToServer=True)

The start the remote debugger and then the  celeryd process.

This will trigger break point inside Pycharm. I have been looking into a reload process for changes inside the task.

hope this helps

John

0
Comment actions Permalink
How do you add pycharm_debug.egg to project.
How do you create the remote debug configuration
0
Comment actions Permalink
The debugger may be started by multiple processes at the same time, so rather than using a fixed port the debugger will search for an available port, starting from the base port (6900 by default).
0

Please sign in to leave a comment.