详解Zend Debugger安装全过程
2013-09-04 21:52
232 查看
调试技术是我们编程中不可或缺的重要部分,调试器是每个IDE环境都必备的组件。既然如此,Zend Studio的集成环境拥有一个调试器也就是理所当然的事情了,但是,该调试器在配置使用起来,其显示出来的强劲功能一定会让你惊叹不已!
事实上,Zend Studio(后面简称ZDE)的调试功能分为内部调试和远程调试。内部调试是用ZDE内置的PHP(有4、5两个版本)进行的代码初步调试,我们把重点放在远程调试上,因为它可以完全模拟一个真实的运行环境。
远程调试需要服务器端的组件支持,我们今天的内容就是怎么来安装这个服务器端调试环境,用到的调试组件是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 theappropriate 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-i386md5 ZendDebugger-5.2.14RC9-cygwin_nt-i386Inventory.xml ZendDebugger-5.2.14RC9-cygwin_nt-i3864_3_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3864_3_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3864_4_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3864_4_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_0_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_0_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_1_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_1_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_nts_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_nts_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386dummy.php ZendDebugger-5.2.14RC9-cygwin_nt-i386README.txt 解压出合适的也就是和你当前php的版本对应的Zend Debugger版本,我的php版本是5.2.5,因此我就把5_2_x_comp给拖出来了(至于5_2_x_nts_comp指的是non-tread safe,没有明白具体用途,也就不妄用了),我将5_2_x_compZendDebugger.dll移动到D:myserverZendDebugger5_2_xZendDebugger.dll,将压缩包中的dummy.php解压到web根目录,我这里的apache的DocumentRoot设置在D:/myserver/wwwroot,就拷贝dummy.php到D:myserverwwwroot,然后修改php.ini,加入了这些内容:
zend_extension_ts=D:/myserver/ZendDebugger/5_2_x/ZendDebugger.dll zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.88/24 zend_debugger.expose_remotely=always 然后重启apache,在略微的等待之后,我们输入phpinfo()查看成功与否?
事实上,Zend Studio(后面简称ZDE)的调试功能分为内部调试和远程调试。内部调试是用ZDE内置的PHP(有4、5两个版本)进行的代码初步调试,我们把重点放在远程调试上,因为它可以完全模拟一个真实的运行环境。
远程调试需要服务器端的组件支持,我们今天的内容就是怎么来安装这个服务器端调试环境,用到的调试组件是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 theappropriate 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-i386md5 ZendDebugger-5.2.14RC9-cygwin_nt-i386Inventory.xml ZendDebugger-5.2.14RC9-cygwin_nt-i3864_3_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3864_3_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3864_4_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3864_4_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_0_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_0_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_1_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_1_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_nts_comp ZendDebugger-5.2.14RC9-cygwin_nt-i3865_2_x_nts_compZendDebugger.dll ZendDebugger-5.2.14RC9-cygwin_nt-i386dummy.php ZendDebugger-5.2.14RC9-cygwin_nt-i386README.txt 解压出合适的也就是和你当前php的版本对应的Zend Debugger版本,我的php版本是5.2.5,因此我就把5_2_x_comp给拖出来了(至于5_2_x_nts_comp指的是non-tread safe,没有明白具体用途,也就不妄用了),我将5_2_x_compZendDebugger.dll移动到D:myserverZendDebugger5_2_xZendDebugger.dll,将压缩包中的dummy.php解压到web根目录,我这里的apache的DocumentRoot设置在D:/myserver/wwwroot,就拷贝dummy.php到D:myserverwwwroot,然后修改php.ini,加入了这些内容:
zend_extension_ts=D:/myserver/ZendDebugger/5_2_x/ZendDebugger.dll zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.88/24 zend_debugger.expose_remotely=always 然后重启apache,在略微的等待之后,我们输入phpinfo()查看成功与否?
相关文章推荐
- PHP5环境下Zend Debugger安装配置详解
- PHP5环境下Zend Debugger安装配置详解
- 《转载》Ubuntu 11.04 LAMP安装配置 + 整合 JSP 全过程详解
- PHP5.3不支持zend debugger, 安装Xdebug调试工具
- Ubuntu 16.04 Server 版安装过程图文详解
- [转]PowerDesigner安装过程详解
- centos7 下安装Apache2+MariaDB+PHP5过程详解
- APK安装过程及原理详解
- Oracle rac安装过程详解
- hbase安装过程详解
- android-studio安装过程详解
- Maven安装过程及手动添加JAR包到本地仓库详解
- SQL2008安装过程详解!
- Android应用打包安装过程详解
- SQL Server 2012 Enterprise Edition安装过程详解(包含每一步设置的含义)
- Linux安装详解-配置ks.cfg实现自动安装过程
- gnuradio安装指南——详解ubuntu16.04下使用脚本安装gnuradio&uhd全过程
- Ubuntu Server安装全过程(ubuntu服务器安装图文详解,gxk9933原创,欢迎转载)
- Windows 7下安装SQL Server 2005过程详解
- 安装oralce过程中用户、群组及相关oracle inventory的详解