A new version of the Zendstudioserver component was released at the same time as a Zendstudio release, which allows us to easily debug remotely. But since Zend released Zendplatform, they are no longer updating zendstudioserver components. This causes us to debug PHP 5.1.x environment only remotely, not to debug PHP 5.2.x. To debug PHP 5.2.x can only be loaded with a large zendplatform. :(
So I've been looking for a "lightweight" solution. Recently in the stroll zend.com found a good thing: zenddebugger-5.2.3-windows-i386.zip, Intuition told me, this is what I want. Sure enough, the test is successful today!
Let's talk about my test steps:
Download the zenddebugger-5.2.3-windows-i386.zip here and unzip it to a directory, such as the C:Program Filesend, which will create a new Zenddebugger-5.2.3-windows-i386 subdirectory, there are 4_3_x_comp, 4_4_x_comp, 5_2_x_comp and other directories, the X_y_z_comp are changed to php-x.y.z (such as the directory 5_2_ X_comp changed to php-5.2.x);
Ensure that the Zend Extension Manager is loaded, and if Zend Optimizer is installed, Zend Extension Manager is installed automatically, and if not installed, install Zend Optimizer first. Or you can extract the ZendExtensionManager.dll from the Zend Optimizer, and then manually add a line to the php.ini:
zend_extension_ts= "C:Program FilesendendOptimizerendExtensionManager.dll"
Where ZendExtensionManager.dll's location 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 Filesendenddebugger-5.2.3-windows-i386″
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 According to your actual situation fill in, is Php-x.y.z's 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!
Briefly summarize: remote debugging of Zend Studio 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 extension produced by Zend company is loaded by that Zend Extension Manager, so we need to do some extra steps, otherwise we simply add a line zend_extension_ts = xxxxxx.
http://www.bkjia.com/PHPjc/508219.html www.bkjia.com true http://www.bkjia.com/PHPjc/508219.html techarticle a new version of the Zendstudioserver component was released at the same time as a Zendstudio release, which allows us to easily debug remotely. But since ...