Enable remote debugging of PHP 5.2.x environment in Zendstudio

Source: Internet
Author: User
Tags parent directory zend

A new version of the Zendstudioserver component is released at the same time each time an Zendstudio release is released, which allows us to easily debug remotely. But since Zend released Zendplatform, they are no longer updating the Zendstudioserver 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 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, today's test is successful!

Let me say a few steps:

  1. Download Zenddebugger-5.2.3-windows-i386.zip here, and then extract it into a directory, such as: C:Program Fileszend, which will create a new Zenddebugger-5.2.3-windows-i386 subdirectory, which has 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 (For example, change the directory 5_2_x_comp to php-5.2.x);
  2. 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 ZendExtensionManager.dll from the Zend Optimizer, and then manually add a line to the php.ini:
    zend_extension_ts= "C:Program FilesZendZendOptimizerZendExtensionManager.dll"
    where ZendExtensionManager.dll, please fill in according to your actual situation;
  3. Add the following lines to the php.ini of the Web Server:
    Zend_extension_manager.debug_server_ts= "C:Program Fileszendzenddebugger-5.2.3-windows-i386″ (this directory must and Zend Optimizer in the same directory otherwise 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 php-x.y.z the parent directory.

  4. Copy the dummy.php from the zenddebugger-5.2.3-windows-i386 directory to your Web site root directory.

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

Finish.

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.