silva96
silva96

Reputation: 655

Debug django app running inside docker image, using pycharm debugger

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?

Upvotes: 16

Views: 14600

Answers (1)

Gigablah
Gigablah

Reputation: 1401

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

Upvotes: 12

Related Questions