189 8069 5689

php环境开启xdebug的方法

小编给大家分享一下php 环境开启xdebug的方法,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

深州网站建设公司创新互联,深州网站设计制作,有大型网站制作公司丰富经验。已为深州千余家提供企业网站建设服务。企业网站搭建\外贸网站建设要多少钱,请找那个售后服务好的深州做网站的公司定做!

php 环境开启xdebug                                           (推荐学习:phpstorm)

php 环境开启xdebug的方法

到php.ini 下面查看下 xdebug的配置信息

[xdebug]
zend_extension ="c:/wamp64/bin/php/php5.6.35/zend_ext/php_xdebug-2.5.5-5.6-vc11-x86_64.dll"
;xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp64/tmp"
xdebug.show_local_vars=0
xdebug.remote_autostart = 1    # 这里加上远程自动开启,可以省去在浏览器中加载xdebug插件的步骤

xdebug.idekey=phpstorm
xdebug.remote_enable = On
xdebug.remote_host=localhost
;xdebug.remote_port默认值为9000,这里需要跟phpstorm配置一致,下面有说明
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On

PhpStorm 配置debug设置

Language & Frameworks > PHP > Debug (把复选框选中去掉,端口默认9000)

php 环境开启xdebug的方法

Language & Frameworks > PHP > Debug > Servers (添加多个可以调试的地址)

php 环境开启xdebug的方法

开启PhpStorm Debug 监听连接

php 环境开启xdebug的方法

以上是“php 环境开启xdebug的方法”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


文章题目:php环境开启xdebug的方法
文章URL:http://cdxtjz.cn/article/pjejod.html

其他资讯