Attach Pycharm's remote debugger to two containers simultaneously

Viewed 74

I use Pycharm to develop a Django app which relies on Celery for background tasks. For debugging, I use PyCharm's remote interpreter. I configured a Run Configuration with a remote interpreter using docker-compose to start the django service. I can launch this run configuration with an attached debugger and it will break at breakpoints. When launching, Pycharm will start all other services via docker-compose.

I would like to attach the debugger to the django and celery services at the same time so that it interrupts at breakpoints also when the celery worker comes across them.

I already tried to configure another docker-compose remote interpreter using the celery service. But launching one terminates the other.

0 Answers
Related