Debug django app running inside docker image, using pycharm debugger

silva96 picture silva96 · Apr 14, 2015 · Viewed 10.9k times · Source

My app is running inside a docker image (My development team never install software in their machines, only the docker images have the dependencies).

I Need to debug something using pycharm debugger, how do I connect pycharm's debugger to the docker image's python?

Answer

Gigablah picture Gigablah · Apr 15, 2015

One possible method is to treat your Docker container as a remote host and use remote debugging: https://www.jetbrains.com/pycharm/help/remote-debugging.html