skip to Main Content

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.

Edit: If it’s not possible with PyCharm, then maybe VS Code can do it?

2

Answers


  1. On VS Code the feature you are looking for is called Compound launch configurations

    Login or Signup to reply.
  2. According to official PyCharm documentation you can specify 2 debug configurations distinguished by port number.

    Also you can combine 2 independed ways "deployment configuration for a remote interpreter" simultanously with
    "remote debug server configuration"

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search