[英]How can I execute my tests in Debug in PyCharm using a Docker Python Interpreter?
I configured PyCharm Python Interpreter as a remote Docker Python Interpreter: 我将PyCharm Python解释器配置为远程Docker Python解释器:
I do not have any problem to run my tests using this configuration. 使用此配置运行我的测试没有任何问题。
But when I try to run them in Debug
, execution freeze to this waiting for connection...
status: 但是,当我尝试在
Debug
运行它们时,执行会冻结到此waiting for connection...
状态:
So my questions are: 所以我的问题是:
This problem is due to pydevd
hardcoded host ip address in PyCharm
sources ( 10.0.0.2
). 此问题是由于
PyCharm
源( 10.0.0.2
)中的pydevd
硬编码的主机ip地址引起的。
So if you do not use VirtualBox
to manage and run your docker-machine
, you will not be able to easily launch your tests in debug. 因此,如果您不使用
VirtualBox
来管理和运行docker-machine
,则将无法轻松地在调试中启动测试。
It should be patched in PyCharm 2016.3
for docker interpreter
and in PyCharm 2016.3.1
for docker-compose interpreter
. 应该在
PyCharm 2016.3
docker interpreter
的PyCharm 2016.3.1
和PyCharm 2016.3.1
docker-compose interpreter
PyCharm 2016.3
进行修补。
Awaiting this release, a workaround exist here, on JetBrain website . 等待此版本, JetBrain网站上存在解决方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.