Debugging technology is an integral part of our programming, and the debugger is a must-have component for every IDE environment. That being the case, Zend Studio's integrated environment has a debugger, which is a matter of course, but the debugger is used in its configuration and its powerful features are sure to amaze you!
In fact, the debugging capabilities of Zend Studio (hereafter referred to as Zde) are divided into internal debugging and remote debugging. Internal debugging is the initial debugging of the code with ZDE built-in PHP (4, 52 versions), and we focus on remote debugging because it can fully simulate a real-world operating environment.
Remote debugging requires server-side component support, our content today is how to install the server-side debugging environment, the use of the debug component is Zend Debugger, it is light and adequate, at the time of writing this article, The latest version is 5.2.14, which is slightly updated with the 5.2.10 version, which is widely circulated on the web. My server is Apache under Windows, so I downloaded the Windows version of Zend Debugger, down the compressed package about 2.1M, there is a Readme.txt, I think it is necessary to see see:
- Zend Debugger Installation Instructions
- —————————————
- 1. Locate zenddebugger.so or ZendDebugger.dll file that's 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.
Here is a very detailed description of the installation method, then I will describe it in my obscure language again, the following is a list of all files in the package:
- 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
Extract the appropriate and your current PHP version corresponding to the Zend debugger version, my PHP version is 5.2.5, so I dragged 5_2_x_comp out (as for 5_2_x_nts_comp refers to Non-tread safe, Do not understand the specific purpose, it will not be used), I will 5_2_x_compzenddebugger.dll moved to D:myserverzenddebugger5_2_ XZendDebugger.dll, unzip the dummy.php in the package to the Web root directory, I here Apache DocumentRoot set in D:/myserver/wwwroot, copy dummy.php to D: Myserverwwwroot, and then modify the php.ini, adding these content:
- 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
-
Then restart Apache, after a little wait, we enter phpinfo () to see success or not?
http://www.bkjia.com/PHPjc/445906.html www.bkjia.com true http://www.bkjia.com/PHPjc/445906.html techarticle debugging technology is an integral part of our programming, and the debugger is a must-have component for every IDE environment. That being the case, Zend Studio's integrated environment has a debugger ...