使用PhpStorm与Xdebug的PHP的调试时,我搜索了很多对于这个问题有IDE关键传入的连接,我发现3个或4个环节讨论这个问题,但他们都不是useful.My的Xdebug的版本是2.2.3,PhpStorm的版本是6.03。我可以通过调试每一步踩线,除了这一个Xdebug的PhpStorm:等待
$this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass);
PhpStorm显示了这个错误:等待与IDE键“14841”传入的连接。 这里是我的XDebug配置:
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,它仍然是相同的 我保证,这三个参数是正确的。
谢谢,我发现原因后来,我注意到,我忘了安装mysql.so extension.so此功能失败。 –
好吧,但是如何让phpstorm使用idekey“PHPStorm”而不是随机数? – Andrew
这与上面没有任何关系。请检查我的帖子下面 –