Xdebug PhpStorm:等待带有ide密钥的传入连接 [英] Xdebug PhpStorm: Waiting for incoming connection with ide key
问题描述
在使用PhpStorm和xdebug调试php时,我已经搜索了很多这个问题,发现3或4个讨论此问题的链接,但是它们都没有用.我的Xdebug版本是2.2.3,PhpStorm'version是6.03.除了这一步,我可以逐步调试每一行
I've searched a lot for this problem when debugging php using PhpStorm with xdebug, I found 3 or 4 links discussing this problem, but none of them are useful.My Xdebug's version is 2.2.3, and PhpStorm'version is 6.03. I could debug every line step by step except this one
$this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass);
PhpStorm显示此错误:正在等待使用ide键"14841"的传入连接. 这是我的xdebug配置:
PhpStorm shows this error:Waiting for incoming connection with ide key "14841". Here are my xdebug configuration:
zend_extension="/usr/lib/xdebug.so"
xdebug.remote_autostart=1
xdebug.show_local_vars=1
xdebug.dump.GET=*
xdebug.dump.POST=*
xdebug.dump.SERVER=*
xdebug.auto_trace=On
; default trace output directory /tmp
xdebug.collect_vars = On
xdebug.trace_output_dir=/tmp
xdebug.collect_params=4
xdebug.collect_return=On
xdebug.profiler_enable=Off
; default trace output directory /tmp
;xdebug.profiler_output_dir=/tmp
;xdebug.profiler_enable_trigger=On
;test.php?XDEBUG_PROFILE
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9001
xdebug.remote_handler="dbgp"
xdebug.remote_log = "/tmp"
xdebug.remote_connect_back=1
xdebug.idekey=PHPStorm
我添加以下行"xdebug.remote_connect_back = 1 xdebug.idekey = PHPStorm,也抵制了ide,它还是一样 我保证这三个参数是正确的.
I add these lines " xdebug.remote_connect_back=1 xdebug.idekey=PHPStorm ", also resisted ide ,it is still the same i assure that the three parameters are correct.
推荐答案
您写道:
PhpStorm显示此错误:正在等待使用ide键"14841"的传入连接.
PhpStorm shows this error:Waiting for incoming connection with ide key "14841".
但是您使用:
xdebug.idekey=PHPStorm
这些ide键需要匹配. PHP Storm对此有点可笑.
Those ide keys need to match. PHP Storm is a bit funny about it.
但是你也说:
除了这一步之外,我可以逐步调试每一行
I could debug every line step by step except this one
$this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass);
它们有何不同?是否有其他行为,或者只是停止不了?
How are they different? Is there different behaviour, or just doesn't it stop?
这篇关于Xdebug PhpStorm:等待带有ide密钥的传入连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!