云少春 发表于 2023-1-3 10:29:02

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

注意:

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

第一步:phpstudy里面的php.ini中:复制粘贴


xdebug.default_enable=On
xdebug.idekey = "PHPSTORM"
zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir ="D:\phpstudy_pro\Extensions\tmp\xdebug"
xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9100
xdebug.remote_handler=dbgp
第二步:phpstorm中

phpstorm—>File----》settings---->languages&Frameworks---->php---->debug—>
https://img.jbzj.com/file_images/article/202209/2022092015030214.jpg
https://img.jbzj.com/file_images/article/202209/2022092015030215.png
https://img.jbzj.com/file_images/article/202209/2022092015030216.jpg
点击这两个,先点击apply再点击ok.
https://img.jbzj.com/file_images/article/202209/2022092015030217.png

第三步:phpstorm中

https://img.jbzj.com/file_images/article/202209/2022092015030218.png
https://img.jbzj.com/file_images/article/202209/2022092015030219.png
https://img.jbzj.com/file_images/article/202209/2022092015030320.png

第四步:phpstorm中

https://img.jbzj.com/file_images/article/202209/2022092015030321.png
https://img.jbzj.com/file_images/article/202209/2022092015030322.png

第五步:phpstorm中

https://img.jbzj.com/file_images/article/202209/2022092015030323.jpg
https://img.jbzj.com/file_images/article/202209/2022092015030324.png
https://img.jbzj.com/file_images/article/202209/2022092015030325.png
https://img.jbzj.com/file_images/article/202209/2022092015030426.png
https://img.jbzj.com/file_images/article/202209/2022092015030427.jpg
完成!!!
到此这篇关于phpstorm安装xdebug(phpstudy环境下)成功运行的文章就介绍到这了,更多相关phpstorm安装xdebug内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

来源:https://www.jb51.net/article/263226.htm
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: phpstorm安装xdebug(phpstudy环境下)成功运行的操作步骤