phpstrom使用xdebug配置方法
2013-12-18 11:27
316 查看
这篇文章主要介绍了phpstrom使用xdebug的配置方法,大家参考使用吧
1 到 http://xdebug.org/download.php下载xdebug。注意找到自己对应的php版本。或者可以通过 http://xdebug.org/wizard.php页面,将phpinfo的信息复制进去,点最下面的分析。它会告诉你要下载哪个版本,然后如何配置。
2.打开php.ini添加以下语句
代码如下:
[XDEBUG]
zend_extension = "D:\Program Files (x86)\php5\ext\php_xdebug.dll"
xdebug.remote_enable=on
; 此地址为IDE所在IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; 可以是任意Key,这里设定为PHPSTORM
xdebug.idekey="PhpStorm"
unity3d教程http://www.unitymanual.com/
3.配置IDE
在Settings里面,选择PHP -> Debug,在xdebug里填入刚才设定的端口,确定即可。
4.配置浏览器
Chrome上安装 Xdebug helper 。设置Key等于php.ini所设定的key
5.调试过程:在PhpStorm的run菜单最下面,选择 Start Listen PHP Debug Connections 开启监听。当浏览器访问到断点的地方,就会PhpStorm就会自动响应。
1 到 http://xdebug.org/download.php下载xdebug。注意找到自己对应的php版本。或者可以通过 http://xdebug.org/wizard.php页面,将phpinfo的信息复制进去,点最下面的分析。它会告诉你要下载哪个版本,然后如何配置。
2.打开php.ini添加以下语句
代码如下:
[XDEBUG]
zend_extension = "D:\Program Files (x86)\php5\ext\php_xdebug.dll"
xdebug.remote_enable=on
; 此地址为IDE所在IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; 可以是任意Key,这里设定为PHPSTORM
xdebug.idekey="PhpStorm"
unity3d教程http://www.unitymanual.com/
3.配置IDE
在Settings里面,选择PHP -> Debug,在xdebug里填入刚才设定的端口,确定即可。
4.配置浏览器
Chrome上安装 Xdebug helper 。设置Key等于php.ini所设定的key
5.调试过程:在PhpStorm的run菜单最下面,选择 Start Listen PHP Debug Connections 开启监听。当浏览器访问到断点的地方,就会PhpStorm就会自动响应。
相关文章推荐
- phpstrom使用xdebug配置方法
- phpstrom使用xdebug配置方法
- phpstrom使用xdebug配置方法
- 在ASP.NET中使用FCKEditor的简单配置方法图解
- 日志组件logback的介绍及配置使用方法(一)
- 使用sqlserver存储过程sp_send_dbmail发送邮件配置方法(图文)
- Spring Boot 与 Kotlin 使用Redis数据库的配置方法
- AngularJs中route的使用方法和配置
- 有关win7下使用DebugView看内核打印的配置方法
- 使用visualvm远程监控JVM LINUX tomcat服务器与客户端配置方法
- linux配置防火墙详细步骤(iptables命令使用方法)
- 合作开发——VisualSvn Server 的配置和使用方法
- tomcat使用log4j分割日志的配置方法
- 简单方法配置vc2005和source sight 使用pc-lint
- Android studio配置svn及使用方法
- 使用zend studio 配置 xdebug教程
- Unity使用独立配置文件的方法
- Android x86模拟器Intel Atom x86 System Image配置与使用方法
- swfupload配置与使用方法
- [转载]IIS Express 7.5使用及配置方法