Debug Celery Tasks
anybody figured out how to debug celery tasks inside PyCharm or IntelliJ? I could find a single, really old thread that is not giving too much details about it.
i tried running celery through my project manage.py and when i run this in debug mode everything seems to be working, with the exception that none of my breakpoints are getting hit. any idea why? i was hoping that anything in the run PYTHONPATH that has a breakpoint will stop
i tried running celery through my project manage.py and when i run this in debug mode everything seems to be working, with the exception that none of my breakpoints are getting hit. any idea why? i was hoping that anything in the run PYTHONPATH that has a breakpoint will stop
Please sign in to leave a comment.
The other thing you can try is use the Remote Debug feature. Start pycharm's Python Remote Debug, and then drop that pydevd.settrace line somewhere you know the celery worker process will hit it.
Just in case someone else lands here I followed these instructions:
http://stackoverflow.com/questions/29312809/how-do-i-enable-remote-celery-debugging-in-pycharm
Just involved creating a Python Run/Debug and setting the 'Working Dir' to be the celery install location and set script to run as celery.