使用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
這與上面沒有任何關係。請檢查我的帖子下面 –