iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >phpstorm+xdebug/php项目调试
  • 245
分享到

phpstorm+xdebug/php项目调试

phpphpstorm开发语言 2023-09-01 11:09:43 245人浏览 薄情痞子
摘要

前提:项目使用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文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作