简体   繁体   English

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

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

My development environment is: - MacOs High Sierra - PhpStorm - PHP 5.6 - Apache 2.4 - Xdebug 2.5.5 我的开发环境是:-MacOs High Sierra-PhpStorm-PHP 5.6-Apache 2.4-Xdebug 2.5.5

php config file for xdebug: xdebug的php配置文件:

[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"

In PHPStorm debug validate tool it seems everything is up and running: 在PHPStorm调试验证工具中,似乎一切都已启动并正在运行:

在此处输入图片说明

The xdebug debug log is 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

To run in debug mode I follow those steps . 要以调试模式运行,请按照以下步骤操作

I can't figured out why the breakpoints aren't hit. 我不知道为什么没有达到断点。 Anyone can give me some hints? 有人可以给我一些提示吗?

It's not PhpStorm that is listening for port 9000, most probably it's php-fpm. 监听端口9000的不是PhpStorm,很可能是php-fpm。 Change the debugging port to 9001 in PhpStorm and the .ini file. 在PhpStorm和.ini文件中将调试端口更改为9001。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM