Zendstudio for Eclipse Debugging primer (Breakpoint Debugging)

Source: Internet
Author: User
Tags download zend install php php web server zend

The former stage in the project integrated a PHPBB3 forum, is also a PHP starter, set up a breakpoint debugging environment spent a lot of time, here to explain some details for reference, for the development of saving time.

Environment Description:
Ide-zendstudio for Eclipse-6.0.0
WEB Server-apache 2.2.6 + PHP 5.2.6

1.1. PHP Web Server Installation Instructions
Here's how to install Apache + PHP module, install Apache First, then install PHP. PHP installation is mainly decompression installation and Php-x.x.x-win32-installer.msi two kinds of installation methods, the latter can be installed directly without the need to configure Apache http.conf and PHP php.ini, is the graphics installation method, but the installation of PHP attention to select the module, such as Mys QL module, otherwise the installer will not add any modules in the installation directory, the extensions selected in the following illustration is an extension library, and the appropriate module library can be selected as needed. It is recommended that beginners use this installation method first.

1.2. Debugging Considerations
PHP Debugging and we develop Java is a bit different, PHP breakpoint debugging to use in the browser installation Zend Studio toolbar and in PHP Install configuration Zend Debugger plug-in, debug by clicking the browser Zend Studio Toolbar debug item is triggered.

1. When the current page is selected, it represents the current page that the browser URL represents, assuming the current URL is a URL of phpBB.
2. The "Next page" represents a request that is triggered from the current page and enters the debug state.
3. All form requests will enter the debug state in the All Forms (POST) to this site.
4. All pages on this site will enter the debug state

When Zend Studio enters the debug state, the preferred option is to stop at the first line of the page, even if there is no breakpoint on the first line, so if you want to enter a breakpoint set by the user, you will have to press the Rusume button at Zend Studio for Eclipse's debug window once.


1.3. Zend Debugger Installation
? Website download zend Debugger, download URL:
Http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.14-cygwin_nt-i386.zip
Please check the Readme file below the zip, you can see the 5_2_x_comp directory for PHP 5.2.x version, the following ZendDebugger.dll copy to the PHP extension Library directory ${php_home}\ext, the dummy.php Copy to the root of phpBB's deployment, dummy.php is primarily used to communicate with Zend Studio toolbar installed by the browser.
? Configure php.ini file, add:
[Zend]
Zend_extension_ts=d:\php\php5.2.6\ext\zenddebugger.dll
Zend_debugger.allow_hosts=127.0.0.1/10
Zend_debugger.expose_remotely=always

The 127.0.0.1/10 in the above configuration represents the address segment of 127.0.0.1 to 127.0.0.10

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.