无法让 Xdebug 与 PhpStorm 和 XAMPP 结合使用

Can't figure out to let Xdebug work in combination with PhpStorm and XAMPP

我遵循了 Xdebug 基于 phpinfo():

推荐的步骤

我还取消选中“通过 PhpStorm 中未注册的服务器配置忽略外部连接”。在 PhpStorm 端口 9000 中配置。此端口未被其他应用程序使用。

php.ini 文件中,我列出了以下配置:

[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0rc4-5.6-vc11.dll
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "C:\xampp\tmp"

DLL 文件存在。

我还通过 xdebug 插件在 chrome 中启用了调试功能。

我错过了哪一步?

您可能需要设置 xdebug.remote_enable = 1 否则远程调试将被禁用。

此外,设置远程调试端口 phpStorm 设置为使用: xdebug.remote_port=9000(我假设端口 9000,这是默认端口,但请检查 phpstorm)

要调试每个请求(如果您没有浏览器的 chrome 插件)使用 xdebug.remote_autostart = on