[PHP] phpstorm安装xdebug(phpstudy环境下)成功运行的操作步骤

2342 2
王子 2022-11-6 08:10:08 | 显示全部楼层 |阅读模式
目录

    注意:第一步:phpstudy里面的php.ini中:复制粘贴第二步:phpstorm中第三步:phpstorm中第四步:phpstorm中第五步:phpstorm中


注意:

想要在phpstorm中调试请满足一个条件。那就是安装在d盘。为什么呢?因为这样方便复制粘贴呀,
要开启phpstudy中的php扩展的xdebug啊

第一步:phpstudy里面的php.ini中:复制粘贴
  1. [Xdebug]
  2. xdebug.default_enable=On
  3. xdebug.idekey = "PHPSTORM"
  4. zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll
  5. xdebug.collect_params=1
  6. xdebug.collect_return=1
  7. xdebug.auto_trace=On
  8. xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
  9. xdebug.profiler_enable=On
  10. xdebug.profiler_output_dir ="D:\phpstudy_pro\Extensions\tmp\xdebug"
  11. xdebug.remote_enable=On
  12. xdebug.remote_host=127.0.0.1
  13. xdebug.remote_port=9100
  14. xdebug.remote_handler=dbgp
复制代码
第二步:phpstorm中

phpstorm—>File----》settings---->languages&Frameworks---->php---->debug—>






点击这两个,先点击apply再点击ok.



第三步:phpstorm中








第四步:phpstorm中






第五步:phpstorm中











完成!!!
到此这篇关于phpstorm安装xdebug(phpstudy环境下)成功运行的文章就介绍到这了,更多相关phpstorm安装xdebug内容请搜索中国红客联盟以前的文章或继续浏览下面的相关文章希望大家以后多多支持中国红客联盟!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行