Enable remote debugging of PHP 5.2.x environment in Zendstudio

Source: Internet
Author: User
Tags ini parent directory root directory zend

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.

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.