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 (which I referred to as "Zde" later) 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 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=
Zend_debugger.expose_remotely=always
4. Place dummy.php file in the document root directory.
5. Restart Web server.
The installation method has been described in great detail here, so I'll describe it again in my obscure language.
The following is a list of all the files in a compressed 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_compenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i3864_4_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i3864_4_x_compenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_0_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_0_x_compenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_1_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_1_x_compenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_compenddebugger.dll
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_nts_comp
Zenddebugger-5.2.14rc9-cygwin_nt-i3865_2_x_nts_compenddebugger.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_compenddebugger.dll moved to D:myserverenddebugger5_2_ XendDebugger.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?
Aha, it's a good run.
Below open Zde, Tools menu, Preferences, select Debug tab, set debug mode for server, debug server URL fill Web server URL, I here Apache port is 8080, if is the default 80 port, you can omit, OK, set to complete, Determine ()
Select Tools, check the debug server connection, choose Yes, we see hints for successful connections
At this point, our debug server, even if the installation is complete successfully, on how to use Zend Studio Server debugging, the following tutorial will be elaborated in detail, please look forward to OH.
http://www.bkjia.com/PHPjc/486475.html www.bkjia.com true http://www.bkjia.com/PHPjc/486475.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 ...