前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >PHPStorm配置Xdebug

PHPStorm配置Xdebug

作者头像
苦咖啡
发布2018-05-08 17:37:59
1.1K0
发布2018-05-08 17:37:59
举报
文章被收录于专栏:我的博客我的博客

1.安装debug 2.检查phpinfo是否存在xdebug 3.修改/etc/php5/apache2/conf.d/xdebug.ini 内容如下: [xdebug] zend_extension=”/usr/lib/php5/20090626/xdebug.so” xdebug.idekey=”PHPSTORM” xdebug.remote_host=127.0.0.1 xdebug.remote_enable=on xdebug.remote_port = 9000 xdebug.remote_handler = “dbgp” xdebug.auto_trace = 1 xdebug.collect_includes = 1 xdebug.collect_params = 1 xdebug.collect_return = 1 xdebug.default_enable = 1 xdebug.collect_assignments = 1 xdebug.collect_vars = 1 xdebug.remote_autostart = 1 xdebug.remote_connect_back = 1 xdebug.show_local_vars = 1 xdebug.show_exception_trace = 0

4.PHPStorm设置 php-servers中设置name:localhost,host:localhost,port:80,debugger:xdebug php-debug中设置端口为9000 php-debug-dbgp proxy中这是IDE key:PHPSTORM host:设置localhost 5.如果是框架需要配置 菜单run-edit debug configurations-defaults-PHP web Application中设置 server:localhost Start URL:这里填写你要调试的路径地址 参考网址:http://www.crazyphper.com/?p=2860

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2013年12月12日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档