远程调试需要服务器端的组件支持,我们今天的内容就是怎么来安装这个服务器端调试环境,用到的调试组件是Zend Debugger,它是轻便而且够用的,在撰写本文时,其最新版本是5.2.14,与网络上广为流传的5.2.10版略有更新。我的服务器是windows下的apache,因此我就下载了windows版的Zend Debugger,下来的压缩包大约2.1M,有个readme.txt,我觉得有必要看哈子: Zend Debugger installation instructions ————————————— 1. Locate ZendDebugger.so or ZendDebugger.dll file that is compiled for the correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in the appropriate directory. 2. Add the following line to the php.ini file: Linux and Mac OS X: zend_extension=/full/path/to/ZendDebugger.so Windows: zend_extension_ts=/full/path/to/ZendDebugger.dll Windows non-tread safe: zend_extension=/full/path/to/ZendDebugger.dll (*) the windows non-thread safe is used only with Zend Core 2.0 3. Add the following lines to the php.ini file: zend_debugger.allow_hosts= ip_addresses zend_debugger.expose_remotely=always 4. Place dummy.php file in the document root directory. 5. Restart web server.这里已经非常详细的讲了安装方法了,那我就以我晦涩的语言再描述一遍吧 以下是压缩包内所有文件的列表: ZendDebugger-5.2.14RC9-cygwin_nt-i386/md5 ZendDebugger-5.2.14RC9-cygwin_nt-i386/Inventory.xml ZendDebugger-5.2.14RC9-cygwin_nt-i386/4_3_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i386/4_3_x_comp/ZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386/4_4_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i386/4_4_x_comp/ZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_0_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_0_x_comp/ZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_1_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_1_x_comp/ZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_2_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_2_x_comp/ZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_2_x_nts_comp ZendDebugger-5.2.14RC9-cygwin_nt-i386/5_2_x_nts_comp/ZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386/dummy.php ZendDebugger-5.2.14RC9-cygwin_nt-i386/README.txt