Open the remote debugging function of PHP 5.2.x environment in Zendstudio _php tutorial

Source: Internet
Author: User
Tags zend

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

  • Related Article

    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.