Enable the PHP5.2.x environment remote debugging function in ZendStudio-PHP source code

Source: Internet
Author: User
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:

  1. 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 );
  2. 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;
  3. 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.

  4. Copy dummy. php In the ZendDebugger-5.2.3-Windows-i386 directory to the root directory of your Web site.

  5. 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

<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.