XDebug:Windows + Docker + PHPStorm [英] XDebug: Windows + Docker + PHPStorm

查看:432
本文介绍了XDebug:Windows + Docker + PHPStorm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的操作系统是Windows 10.我已经通过boot2docker镜像运行Docker。 IDE使用的是PHPStorm。我想做的是使用XDebug进行调试,但是我没有运行它。我搜索了Web,尝试了我发现的例子,但没有任何帮助。有没有人可以帮助我?[/ p>

编辑:Nginx在服务器上运行。



当前设置:
xdebug.ini

  zend_extension = xdebug.so 
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.idekey = PhpStorm

PhpStorm服务器
主机是相同的IP我连接SSH。路径映射已启用。调试器是Xdebug
我已经尝试了一个特定的DBPg代理,但没有成功

解决方案

我知道了。我只是忘了转港。我必须通过 docker run -d -p 80:80 -p 9000:9000 -v / mnt / www / foo:/ var / www / foo foo 。


My OS is Windows 10. I've run Docker via the boot2docker image. IDE I use is PHPStorm. What I want to do is debug with XDebug, but I don't get it running. I searched the Web and tried the examples I found but nothing helps. Is there anyone with the same architecture who can help me?

Edit: Nginx ist running on the server.

Current setup: xdebug.ini

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.idekey=PhpStorm

PhpStorm server Host is same IP I connect for SSH. Path mappings is enabled. Debugger is Xdebug I tried already with a specific DBPg Proxy but no success

解决方案

I got it. I just forgot to forward the port. I've to run the container via docker run -d -p 80:80 -p 9000:9000 -v /mnt/www/foo:/var/www/foo foo.

这篇关于XDebug:Windows + Docker + PHPStorm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆