Ec (2); in the past, whenever a new version of ZendStudio was released, a new version of ZendStudioServer component was released. This component allows us to easily perform remote debugging. However, since ZendPlatform is released, ZendStudioServer components are no longer updated. As a result, we can only remotely debug the PHP5.1.x environment, but not PHP5.2.x. Think of script ec (2); script
In the past, whenever a new version of ZendStudio was released, a new version of ZendStudioServer component was released. This component allows us to easily perform remote debugging. However, since ZendPlatform is released, ZendStudioServer components are no longer updated. As a result, we can only remotely debug the PHP 5.1.x environment, but cannot debug PHP 5.2.x. To debug PHP 5.2.x, you can only install a large ZendPlatform. :(
Therefore, I have been looking for a "lightweight" solution. Recently found a good thing during a visit to Zend.com: ZendDebugger-5.2.3-Windows-i386.zip, intuition tells me that this is what I want. Sure enough. Today's test is successful!
The following describes the test procedure:
- Download the ZendDebugger-5.2.3-Windows-i386.zip here and decompress it to a directory, such as C: Program FilesZend, which creates a new ZendDebugger-5.2.3-Windows-i386 subdirectory in the directory, there are Directories such as 4_3_x_comp, 4_4_x_comp, and 5_2_x_comp,Change these x_y_z_comp to php-x.y.z, respectively.(For example, change Directory 5_2_x_comp to php-5.2.x );
- Make sure that Zend Extension Manager has been loaded. If Zend Optimizer is installed, Zend Extension Manager is automatically installed. If Zend Optimizer is not installed, install Zend Optimizer first. Alternatively, you can extract ZendExtensionManager. dll from Zend Optimizer and manually add a line in php. ini:
Zend_extension_ts = "C: Program FilesZendZendOptimizerZendExtensionManager. dll"
Enter the ZendExtensionManager. dll Location Based on your actual situation;
-
Add the following lines in php. ini of Web Server:
Zend_extension_manager.debug_server_ts = "C: Program FilesZendZendDebugger-5.2.3-Windows-i386" (This directory must be in the same directory as Zend Optimizer or it cannot be loaded)
Zend_debugger.expose_remotely = allowed_hosts
Zend_debugger.allow_hosts = 127.0.0.1/32,192.168 .1.0/24,192.168 .1.0/24
Zend_debugger.allow_tunnel = 127.0.0.1/32
Zend_extension_manager.debug_server_ts value please fill in according to your actual situation, is the php-x.y.z parent directory.
-
Copy dummy. php In the ZendDebugger-5.2.3-Windows-i386 directory to the root directory of your Web site.
-
Restart your Web Server. OK!
To sum up, the remote debugging of Zend Studio is provided by the ZendStudioServer component (ZendDebuger. dll. Essentially, this is a Zend extension, so you only need to enable this Zend extension. Only Zend extensions produced by Zend can be loaded by the Zend Extension Manager. Therefore, we need to perform some additional steps. Otherwise, we only need to add a line of zend_extension_ts = xxxxxx.
.
Postscript: Modify php. ini
[Zend]
Zend_extension_manager.optimizer_ts = "d: apmZendZendOptimizer-3.3.0libOptimizer-3.3.0"
Zend_extension_ts = "d: apmZendZendOptimizer-3.3.0libZendExtensionManager.dll"
Zend_extension_manager.debug_server_ts = "D: APMZen
<