How to configure PyCharm Python interpreter from the Docker container to listen to Debug connections from the browser?

There is a Docker container. In PyCharm its Dockerfile is specified as a Python interpreter. Without Docker I can run the debugger and when I visit the site via browser, you can step by step to see what is happening in the code. How do I get to debug the request from a browser of a Docker container?

When I run (in the start script), the debugger of the dock, it runs, stops on breakpoints, but at the end of the script terminates. How to make Debug listening for incoming connections from the BROWSER?

The console output of the debugger:
beaf42281a1f:python
-u /opt/.pycharm_helpers/pydev/pydevd.py 
--multiprocess
--qt-support=auto
--port 51038 
--file /opt/project/script.py


And by the way, why there is a reference to /opt/project/script.py if on the host and the way everything is in different folders?
March 19th 20 at 09:10
1 answer
March 19th 20 at 09:12
This is what I did, but it does not cling to the query from the browser. - Marley commented on March 19th 20 at 09:15
@Marley, uh, put a break point, will come problems should not be - Isai.Feeney commented on March 19th 20 at 09:18

Find more questions by tags DockerPyCharmDebuggingPython