xdebug-等待与ide键的传入连接

问题描述 投票:3回答:3

我正在使用xDebug。但我无法调试整个项目。我可以调试启动URL页面断点。但当我跨过线路时,它显示登录页面,当我提交登录页面时,我无法到达下一个断点。在变量窗口中,它显示“正在等待使用ide键的传入连接”。我的x.bbb的php.ini配置:

[XDebug]
    zend_extension="/usr/lib/php5/20121212+lfs/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_port="9001"
    xdebug.profiler_enable=1
    xdebug.profiler_output_dir="home/tmp"

请帮忙。

php xdebug
3个回答
0
投票

也许你可以在php.ini中添加一行:

xdebug.remote_connect_back=1

我希望这种方法对你有所帮助。


0
投票

你应该设置phpstorm的DBG代理enter image description here

见:refer link


0
投票

因为Xdebug需要cookie XDEBUG_SESSION或url XDEBUG_SESSION_START中的查询字符串,并且值是Waiting for incoming connection with ide key的值。

您可能会从登录页面错过这两个。

参考:https://xdebug.org/docs/remote,搜索HTTP Debug Sessions

© www.soinside.com 2019 - 2024. All rights reserved.