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_extensi/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-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
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_comp\zenddebugger.dll moved to D:\myserver\ZendDebugger\5_2_x\ ZendDebugger.dll, unzip the dummy.php in the package to the Web root directory, I here Apache DocumentRoot set in D:/myserver, copy dummy.php to D:\myserver\ Wwwroot, and then modify the php.ini, adding these content:
Zend_extensi/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.
The above describes the Debugger PHP server debugging Zend Debugger installation tutorial, including the Debugger aspects of the content, I hope that the PHP tutorial interested in a friend helpful.