Eclipse Development PHP Whole process build with Debug configuration

Source: Internet
Author: User
Tags vc9 win32 zend

1:eclipse Development of PHP in the whole process of building with Debug configuration

2: Install the Java running Environment first this eclipse is running on this, install it yourself.

3: Install the operating environment of PHP, I was apache+php their own configuration, PHP version is the version of the 5.3.apache is 2.2. I set Apache's home directory in my D:\phproot. The home directory of my PHP is

D:\php-5.3.8-Win32-VC9-x86. Here's what I want to say:

1: Download eclipse PDT All in one, address: http://downloads.zend.com/pdt/all-in-one/helios/SR-1/eclipse-php-helios-SR1-win32.zip

2: Download Xdebug (because I this version of PHP is TS is the thread-safe, and the commonly used Zend Debuger I did not see this version of 5.3, so chose the xdebug, did not think xdebug configuration simpler instead), download the address is: http:// Www.xdebug.org/files/php_xdebug-2.2.1-5.3-vc9.dll

3: Put the downloaded DLL in the place is:

D:\php-5.3.8-Win32-VC9-x86\ext\php_xdebug-2.2.1-5.3-vc9.dll

4: Add the following statement under PHP.ini:

[Xdebug]
Zend_extension=d:\php-5.3.8-win32-vc9-x86\ext\php_xdebug-2.2.1-5.3-vc9.dll
Xdebug.profiler_enable=on
Xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.show_exception_trace = on
Xdebug.remote_autostart = on
xdebug.remote_enable = on
xdebug.collect_vars = On


5: Restart Apache, casually build a php file, to output the phpinfo (); If you see the screenshot below, the installation is successful.

6: The problem with Eclipse is, first of all, configuring Eclipse. Two screenshots will be fine, look carefully below:

7: As long as the top 2 screenshots are configured, you can then build I Project under Eclipse (to make this project directory a subdirectory below Phproo or a virtual directory that can be accessed directly in eclipse)

8: Create a random php file, hit the breakpoint, and then choose:

Right-click to select this php file->debug as->php Web page,eclipse automatically open this php in the browser, run to the breakpoint appears:

OK, all OK, more simple than Zend Debger configuration ...

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.