[Django]-Remote debugging of Python server with rpdb

4👍

You just need to add the addr param to the Rpdb() to accept the connections.

It’ll look like this:

import rpdb; rpdb.Rpdb(addr='0.0.0.0', port=5555).set_trace()

Don’t forget to add EXPOSE 5555 to your Dockerfile and map the ports on the running container.

Leave a comment