我在使用PhpStorm和xdebug时遇到了一些问题(就像其他一些人一样)。
我看过,并尝试过:
PhpStorm Xdebug : Waiting for incoming connection with ide key
PhpStorm, xdebug and vagrant still waiting for incoming connection
Xdebug PhpStorm: Waiting for incoming connection with ide key
当我启动调试器时,我转到一个以XDEBUG_SESSION_START=XXXXXX
结尾的url。这和我在phpinfo()
上的ID是一样的。
我的配置:
php.ini
[Xdebug]
zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=192.168.1.113
xdebug.remote_port=9001
xdebug.idkey=PHPSTORM
xdebug.remote_log =/Users/gustavelmgren/xdebug.log
xdebug.log
> Log opened at 2016-11-09 19:52:07 I: Connecting to configured
> address/port: 192.168.1.113:9001. I: Connected to client. :-)
> -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
> fileuri="file:///Users/gustavelmgren/dbwebb-kurser/anax-flat/htdocs/index.php"
> language="PHP" protocol_version="1.0" appid="19557"
> idekey="13691"><engine
> version="2.2.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
> Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2014 by Derick Rethans]]></copyright></init>
PhpStorm设置
发布于 2018-05-28 18:11:49
在主机的帮助下,我删除了这两行代码
":: 1" localhost (ipv6 (localhost)
phpstorm未看到本地主机ip v4)
https://stackoverflow.com/questions/40515154
复制相似问题