A new version of the Zend Studio Server component was released at the same time each time a newer release of Zend Studio was released, making it easy for us to debug remotely. But since Zend released Zend Platform, they are no longer updating the Zend Studio Server component. This causes us to remotely debug the PHP 5.1.x environment and not debug PHP 5.2.x. To debug PHP 5.2.x you can only install a large Zend Platform. :(
So I've been looking for a "lightweight" solution. Recently in the stroll zend.com found a good thing: Zend Studio Web Debugger, Intuition tells me, this is what I want. Sure enough, today's test is successful!
Let me say a few steps:
Download Zenddebugger-5.2.3-windows-i386.zip here, and then extract it into a directory, such as: C:\Program Files\zend, which will create a new Zenddebugger-5.2.3-windows-i386 subdirectories, which have 4_3_x_comp, 4_4_x_comp, 5_2_x_comp, and so on, to x_y_z_comp these php-x.y.z respectively (such as the directory 5_2_ X_comp changed to php-5.2.x);
Ensure that the Zend Extension Manager is already loaded, and if Zend Optimizer is installed, Zend Extension Manager is installed automatically, and if not, install Zend Optimizer first. Alternatively, you can extract the Zend Extension Manager.dll from the Zend Optimizer, and then manually add a line to the php.ini:
zend_extension_ts="C:\Program Files\Zend\ZendOptimizer\ZendExtensionManager.dll"
where Zend Extension Manager.dll, please fill in according to your actual situation;
Add the following lines to the php.ini of the Web Server:
zend_extension_manager.debug_server_ts="C:\Program Files\Zend\ZendDebugger-5.2.14-Windows-i386"
zend_debugger.expose_remotely=allowed_hosts
zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.0/16
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 php-x.y.z the parent directory.
Copy the dummy.php from the zenddebugger-5.2.3-windows-i386 directory to your Web site root directory.
Restart your Web server,ok!
To summarize: Zend Studio's remote debugging is provided by the Zendstudioserver component (ZendDebuger.dll). This is essentially a Zend extension, so you can just turn this Zend extension on. Only the Zend extensions produced by Zend company can only be loaded by that Zend Extension Manager, so we need to do some extra steps, otherwise we simply add a line to Zend_extension_ts = xxxxxx.