尽管已正确安装,但 Xdebug 不会在 MacOS High Sierra 上的断点处停止

Xdebug not stopping on breakpoint on MacOS High Sierra although is correctly installed

我的开发环境是: - MacOs High Sierra - PhpStorm - PHP 5.6 - 阿帕奇 2.4 -Xdebug 2.5.5

php xdebug 的配置文件:

[xdebug]
zend_extension="/usr/local/opt/php56-xdebug/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=jit
xdebug.remote_autostart=1
xdebug.remote_handler = dbgp
xdebug.force_display_errors=1
xdebug.idekey="PHPSTORM"
xdebug.remote_enable=1
xdebug.show_error_trace=1
xdebug.remote_log="/Users/user/www/xdebug_remote.log"
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/Users/user/www/xdebug_profiler"

在 PHPStorm 调试验证工具中似乎一切正常并且 运行ning:

xdebug调试日志为

log opened at 2018-03-21 12:56:51
I: Connecting to configured address/port: 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" 
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" 
fileuri="file:///Users/users/www/slt/index.php" language="PHP" 
xdebug:language_version="5.6.33" protocol_version="1.0" appid="2764" 
idekey="PHPSTORM"><engine version="2.5.5"><![CDATA[Xdebug]]></engine><author> 
<![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url> 
<copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright> 
</init>

-> <response xmlns="urn:debugger_protocol_v1" 
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"> 
</response>

Log closed at 2018-03-21 12:56:51

在调试模式下 运行 我遵循 those steps

我不明白为什么没有命中断点。任何人都可以给我一些提示吗?

不是 PhpStorm 正在侦听端口 9000,很可能是 php-fpm。 在 PhpStorm 和 .ini 文件中将调试端口更改为 9001。