目录

注意:

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

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

[Xdebug]
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—>

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

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

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

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

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

第三步:phpstorm中

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

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

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

第四步:phpstorm中

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

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

第五步:phpstorm中

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

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

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

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

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

完成!!!

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章