R
R
rumsey2020-01-17 09:55:39
Django
rumsey, 2020-01-17 09:55:39

How to remotely debug Django in a Docker container?

Django is deployed to docker on a servarvac. One API request needs to be debugged. pycharm development environment. I would like, as I do it locally, to set a breakpoint and see step by step how the script works on the remote machine. As a last resort to look at values ​​of variables.
1. Can this be done and what are the other options?
2. Is it possible to do this without interrupting the main work of django? Will this affect the main operation of the service? That is, set it up once and then periodically use it, or is it better to return everything as it was before debugging?
3. How to set it all up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2020-01-17
@deliro

1. Add a remote interpreter, specifying the compose config and service
2. Start the jungi dev server on the same port where you have gunicorn/uWSGI in debug mode
5e2162562adef550879333.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question