您的位置:首页 > 编程语言 > PHP开发

phpstorm xdebug 调试配置

2015-10-13 10:29 555 查看
第一次使用PhpStorm开发,各种配置会使得开发更简便。

xdebug安装

第一步:在php.ini中开启xdubug扩展

[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="C:\Program Files\phpStudy\tmp\xdebug"
xdebug.trace_output_dir ="C:\Program Files\phpStudy\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
zend_extension="C:\Program Files\phpStudy\php53\ext\xdebug.dll"查看phpinfo是否安装成功。如果是是用脑phpstudy集成环境,只需在扩展中开启即可



第二步 : 在火狐浏览器中添加插件

各浏览器相应xdebug插件请看这里点击打开链接

第三步:打开phpstorm如下图开启debug



至此,phpstorm使用xdebug配置完成。

打开任意php文件打个断点,浏览器开启The easizer xdebug 就可看开始xdebug调试之旅了!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  xdebug PHP