if you are looking for better/different alternatives to APD, check the xdebug website http://www.xdebug.org or download it from PECL http://pecl.php.net/xdebug
IV. APD 高级 PHP 调试器简介APD 是 Advanced PHP Debugger,即高级 PHP 调试器。是用来给 PHP 代码提供规划与纠错的能力,以及提供了显示整个堆栈追踪的能力。APD 支持交互式纠错,但默认是将数据写入跟踪文件。它还提供了基于事件的日志,因此不同级别的信息(包括函数调用,参数传递,计时等)可以对个别的脚本打开或关闭。
安装APD 目前作为一个 PECL 扩展,可以从 http://pecl.php.net/package/apd 得到。确保安装了 CGI 版的 PHP 并且在当前目录下可以运行,以及可以运行 phpize 脚本。 运行以下命令以下载,编译并安装最新稳定版的 APD:
这将自动把 APD Zend 扩展安装到 PHP 扩展库目录中。不是一定要放到那里,可以将此模块存放到任何 PHP 可以读取的目录中,只要正确设定了相应的 zend_extension 参数即可。 Windows 用户可以从 http://snaps.php.net/win32/PECL_STABLE/ 下载扩展库的 DLL 文件 php_apd.dll。 在 INI 文件中,加入下面几行:
根据 PHP 版本,zend_extension 指令可以是以下之一:
在 Win32 下编译要在 Windows 下编译 APD,需要一个在 http://php.net/ 中说明的可用 PHP 编译环境――基本上,需要有 Microsoft Visual C++,win32build.zip,bison/flex,以及相关知识。另外确保 adp.dsp 具有 DOS 行结束符,如果是 Unix 的行结束符,Microsoft Visual C++ 会觉得有问题。 运行时配置这些函数的行为受 php.ini 的影响。 有关 PHP_INI_* 常量进一步的细节与定义参见附录 H。 以下是配置选项的简要解释。
资源类型本扩展模块未定义任何资源类型。 预定义常量本扩展模块未定义任何常量。 怎样在脚本中使用 PHP-APD
联系信息如果有注解,错误修正,提高或者想帮助开发此扩展,请发送邮件到 apd@mail.communityconnect.com。欢迎任何帮助。
judas dot iscariote at gmail dot com
08-May-2006 05:52
if you are looking for better/different alternatives to APD, check the xdebug website http://www.xdebug.org or download it from PECL http://pecl.php.net/xdebug
bugbuster at darrencampbell dot com dot au
22-May-2005 08:53
Locate the root-cause of defects, fast.
ng4rrjanbiah at rediffmail dot com
05-Apr-2005 05:52
Some useful links on APD:
yoghurtmetperzik at gmail dot com
25-Jan-2005 03:15
If pprofp reports 'No such file or directory', it's probably because it contains an incorrect path to your php client. Open pprofp in your fav editor, edit the first line, and try again.
| |||||||||