使用pycharm调试器调试在docker镜像内运行的django app

时间:2021-11-19 21:21:23

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

我的应用程序在docker镜像中运行(我的开发团队从不在他们的机器中安装软件,只有docker镜像具有依赖关系)。

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

我需要使用pycharm调试器调试一些东西,如何将pycharm的调试器连接到docker image的python?

1 个解决方案

#1


4  

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

一种可能的方法是将Docker容器视为远程主机并使用远程调试:https://www.jetbrains.com/pycharm/help/remote-debugging.html

#1


4  

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

一种可能的方法是将Docker容器视为远程主机并使用远程调试:https://www.jetbrains.com/pycharm/help/remote-debugging.html