前提:项目使用xampp集成 一、下载xdebug,当到xampp/PHP/exp目录下 二、配置php.ini [Xdebug]zend_extension="D:/xampp/php/ext/php_xdebug.dll"xdeb
前提:项目使用xampp集成
一、下载xdebug,当到xampp/PHP/exp目录下
二、配置php.ini
[Xdebug]zend_extension="D:/xampp/php/ext/php_xdebug.dll"xdebug.collect_params=Onxdebug.collect_return=Onxdebug.auto_trace=Onxdebug.trace_output_dir="D:\xampp\php\tmp\xdebug"xdebug.profiler_enable=Onxdebug.profiler_enable_trigger=Onxdebug.profiler_output_dir="D:\xampp\php\tmp\xdebug"#如果开启此,将忽略下面的 xdebug.remote_host 的参数。 <一台webserver有多个开发者的工作目录的时候使用,如:p1.xx.com,p2.xx.com,p3.xx.com 。。。等。 >xdebug.remote_connect_back = On#允许远程调试xdebug.remote_enable=On#远程调试地址xdebug.remote_host=127.0.0.1#远程调试端口xdebug.remote_port=9000xdebug.remote_handler=dbgp#调试器的关键字xdebug.idekey=PHPSTORM
三、启动xampp
四、配置phpstorm
(一)、【File】-【Settings】-【Languages&Frameworks】-【PHP】
(二)、【File】-【Settings】-【Languages&Frameworks】-【PHP】-【Debug】
(三)、【File】-【Settings】-【Languages&Frameworks】-【PHP】-【Debug】-【DBGp Proxy】
(四)、【File】-【Settings】-【Languages&Frameworks】-【PHP】-【Server】
(五)、【Edit Configurations】
1、【+】-【PHP WEB Page】
(六)、【Run】-【Web Server Debug Validation】
【Validate】出现以下为正确:
五、访问页面即可debug
来源地址:https://blog.csdn.net/weixin_40459875/article/details/131164010
--结束END--
本文标题: phpstorm+xdebug/php项目调试
本文链接: https://www.lsjlt.com/news/388212.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0