Public | Automated Build

Last pushed: a year ago
Short Description
Image with ssh
Full Description

Run/Debug Configuration (for PyCharm)

Run debug docker container

To debug python code inside a docker container, you have to first run:

$ docker-compose -f debug.yml up

Container should be ready, when

...
debug_1    | Starting OpenBSD Secure Shell server: sshd
...

will be displayed in docker-compose logs.

First time configuration

If you haven't configure it yet, enable django support for your project:

<img src="pycharm_configuration/1.png"/>

Next, you have to add python intepreter which is inside docker as remote interpreter:

<img src="pycharm_configuration/2.png"/>

<img src="pycharm_configuration/3.png"/>

The last thing, you have to properly setup you Run/Debug Configuration. Make sure, that you use host 0.0.0.0.

<img src="pycharm_configuration/4.png"/>

How to debug?

Having configuration prepared, simply run your "run" debug configuration:

<img src="pycharm_configuration/5.png"/>

Docker Pull Command
Owner
rhangelxs
Source Repository

Comments (0)