gpt4 book ai didi

Xdebug PhpStorm : Waiting for incoming connection with ide key

转载 作者:行者123 更新时间:2023-12-03 22:17:01 28 4
gpt4 key购买 nike

我在使用PhpStorm 和xdebug 调试php 时搜索了很多这个问题,我找到了3 或4 个讨论这个问题的链接,但没有一个有用。我的Xdebug 的版本是2.2.3,而PhpStorm 的版本是6.03。除了这一行,我可以一步一步地调试每一行

$this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass);

PhpStorm 显示此错误:正在等待使用 IDE key “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,还是一样
我保证这三个参数是正确的。

最佳答案

你写了:

PhpStorm shows this error:Waiting for incoming connection with ide key "14841".



但是你使用:
 xdebug.idekey=PHPStorm

这些 ide 键需要匹配。 PHP Storm 对此有点可笑。

但后来你也说:

I could debug every line step by step except this one

$this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass);


它们有何不同?是否有不同的行为,或者只是不停止?

关于Xdebug PhpStorm : Waiting for incoming connection with ide key,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17715128/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com