php xdebug 调试
来源:互联网 发布:2017上海网络视听季 编辑:程序博客网 时间:2024/06/05 06:57
1. 配置
下载xdebug : xdebug.org
解压放于php 安装路径ext目录下
编辑php.ini, 在最后添加:
[Xdebug]
zend_extension="./ext/php_xdebug-2.1.0-5.3-vc6.dll" (php5.3)
(php5.2 用zend_extension_ts="./ext/php_xdebug-2.1.0-5.2-vc6.dll")
必须重启web 服务
2. 验证是否装上:
创建一个phpinfo.php空文件;加入如下语句:
<?php phpinfo(); ?>
保存,然后在IE地址栏输入:
localhost/phpinfo.php
果看到了xdebug,表明已经装上了
3. 远程调试
我的web server (192.168.0.100), 调试客户端(192.168.0.101)
[Xdebug]
zend_extension="./ext/php_xdebug-2.1.0-5.3-vc6.dll"
xdebug.remote_host=192.168.0.101 //指定客户端IP
xdebug.remote_enable=on
xdebug.remote_log="c:/xdebug/php.log"
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.trace_output_dir="c:/xdebug"
xdebug.profiler_enable=On
xdebug.profiler_output_dir="c:/xdebug"
注意一点的是:调试客户端的文件路径要与web server 端完全一样,不然没法打上断点。
- php xdebug 调试
- Vim+XDebug调试PHP
- xdebug php 调试
- netbeans+xdebug调试php
- xdebug php 调试
- php使用xdebug调试
- PHP调试之Xdebug
- sublime xdebug调试php
- phpstorm + xdebug + Xdebug helper 调试php
- PHP调试工具 Xdebug + WinCacheGrind
- NetBeans+PHP+XDebug调试程序
- 使用xdebug调试PHP程序
- 使用xdebug调试PHP程序
- netbeans下 xdebug调试php
- 使用Xdebug调试PHP程序
- 如何使用XDebug调试php
- PHP调试工具Xdebug安装
- PHP调试工具Xdebug安装
- 枚举enum的用途浅例
- 分享一个类似于MFC的字符串类
- ASP.NET基础(2)
- 数组集合,相信总有你分不清楚的
- struts2 集成webservice 的方法
- php xdebug 调试
- 函数调用方式的区别[thiscall,__cdecl,__stdcall]
- 存储过程
- Intent的一个用处
- ASP.NET控件
- HDU 4016 搜索
- 一个安慰就够了
- 存储过程的应用
- .内存泄漏与操作系统原理