我在使用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
结尾的网址。这与我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设置
答案 0 :(得分:0)
主机在文件中帮助了我,删除了两行
":: 1" localhost (ipv6 (localhost)
phpstorm 没有看到localhost ip v4)