-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker + xdebug + PHPStorm #260
Comments
|
最后一张图里,你可以在 Additional->Debugger extension 里填 |
浏览器调试能实现吗? 你不设置 DNS 的话,xdebug 设置成这样 xdebug.remote_host=host.docker.internal |
下面记录一下以下参数对 xdebug 的影响
日志如下 Log opened at 2018-03-18 07:02:41
I: Connecting to configured address/port: 192.168.199.101:9001.
E: Time-out connecting to client (Waited: 200 ms). :-(
Log closed at 2018-03-18 07:02:41 连接超时,原因不用说了吧 |
日志如下 Log opened at 2018-03-18 07:07:30
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 172.19.0.1:9001.
W: Creating socket for '172.19.0.1:9001', poll success, but error: Operation in progress (29).
E: Could not connect to client. :-(
Log closed at 2018-03-18 07:07:30 看样子忽略 |
日志如下 日志内容不告诉你,猜猜什么结果?成功还是出现错误提示 |
日志如下 日志内容还是不告诉你,猜猜什么结果?成功还是出现错误提示 |
操作系统
Docker 版本
问题描述
环境说明
clone 本项目.
执行的是
./lnmp-docker.sh development
安装.安装完毕把
bin
加入了环境变量中.问题
docker-php -m
中没有xdebug
扩展?docker-php -ini
中没有指定php.ini
文件? 是否是这个的原因?网页中打印的
phpinfo()
, 可以看到是有xdebug
的. 并且也指定了php.ini
我是想在
phpstorm
中使用docker
的环境. 但是解析不出xdebug
.The text was updated successfully, but these errors were encountered: