杰克工作室 发表于 2023-4-24 23:53

php7.4 安装xdebug3.1.3

<p>xdebug配置xdebug2.+ 跟xdebug3.+配置不一样</p>

<p>可以参考文档Xdebug: Documentation &raquo; Upgrading from Xdebug 2 to 3&nbsp;</p>

<p>2.0版本配置</p>

<pre>

xdebug.remote_enable=ON
xdebug.remote_autostart=ON
xdebug.auto_trace=ON
xdebug.idekey=&quot;PHPSTORM&quot;
xdebug.remote_handler=&quot;dbgp&quot;
xdebug.remote_mode=&quot;req&quot;
xdebug.max_nesting_level=600
xdebug.remote_port = 11011
xdebug.remote_host = &quot;127.0.0.1&quot;
xdebug.remote_log = &quot;/var/log/php/xdebug.log&quot;</pre>

<p>xdebug3版本的php.ini配置</p>

<pre>

xdebug.mode = debug,trace
xdebug.start_with_request = yes
xdebug.remote_handler=&quot;dbgp&quot;
xdebug.idekey=&quot;PHPSTORM&quot;
xdebug.client_port = 11011
xdebug.client_host = &quot;127.0.0.1&quot;
xdebug.log = &quot;/var/log/php/xdebug.log&quot;</pre>

<p>都配置完成了但是还是不断点打印。。。。client_port一定要和phpstorm里设置的xdebug的端口号一致,不然调试不通的。</p>

<p>&nbsp;mode参数还没配置成功<img alt="" src="data/attachment/forum/202304/24/a12b32f0cdac3c6faabe741d82453e7f.jpg" style="width:1200px" /></p>

<p>乌龙了,最后才发现是我复制的代码可能存在空格之类的导致没有生效,我又重新手打了一遍成功了</p>

<p><img alt="" src="data/attachment/forum/202304/24/23d463f8cf9e3c865154552fc14a4977.jpg" style="width:1000px" /></p>

<p>修改编辑器的配置:</p>

<p><img alt="" src="data/attachment/forum/202304/24/6372dc5ef6717dcee684307884a012f5.png" style="width:1200px" /></p>

<p><img alt="" src="data/attachment/forum/202304/24/620c063f8fc4a22d94afa4ef0f7db4eb.png" style="width:1200px" /></p>

<p>成功了!!!</p>

<p><img alt="" src="data/attachment/forum/202304/24/68fae62b2e9d0bb6ec4a63130141490e.jpg" style="height:674px; width:1200px" /><br />
<br />
源文地址:https://blog.csdn.net/qq_24909089/article/details/123141687</p>
页: [1]
查看完整版本: php7.4 安装xdebug3.1.3