用 rdb 太累,http://docs.celeryproject.org/en/latest/userguide/debugging.html
但是怎么才能在 VSCode 中调试 Celery 的程序呢。
用 rdb 太累,http://docs.celeryproject.org/en/latest/userguide/debugging.html
但是怎么才能在 VSCode 中调试 Celery 的程序呢。
|
1
pycharm 好像直接打断点就可以。vscode 就不行,需要做什么配置吗?
|
|
StitchJan 12, 2018
2
不用这么麻烦,把 task 任务的函数去掉 delay 就是在本地运行的。直接在本地调试完成后在添加 delay 运行即可。
|