簡體   English   中英

盡管已正確安裝,但Xdebug不會在MacOS High Sierra的斷點處停止

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

我的開發環境是:-MacOs High Sierra-PhpStorm-PHP 5.6-Apache 2.4-Xdebug 2.5.5

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"

在PHPStorm調試驗證工具中,似乎一切都已啟動並正在運行:

在此處輸入圖片說明

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

要以調試模式運行,請按照以下步驟操作

我不知道為什么沒有達到斷點。 有人可以給我一些提示嗎?

監聽端口9000的不是PhpStorm,很可能是php-fpm。 在PhpStorm和.ini文件中將調試端口更改為9001。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM