Teach you how to build the PHP environment in eclipse

Source: Internet
Author: User
Tags zend
1. Download eclipse proposal download Eclipse Standard (Standard Edition) 2. Download PDT in Eclipse (PHP development tools)
Help->install New Software ...

Work with: Choose--all Available sites--(slow-speed students wait a little while, brush out the list, in the Drop-down box to enter PHP)


Automatically restart eclipse after Setup completes;

3. Configure PHP operating environment and debug environment
1) Download and install the WAMP integrated environment
2 Configure PHP local run and debug environment
	1. Open prefences→php→php executables→execution Environments→add

	2. Open Prefences→php→debug

	3. Local PHP run and Debug configuration is complete

3 Configure PHP Remote Debug environment
   1. Start Wamp, open Php→php.ini Add the following code at the end
   2. Restart Wamp

Zend_extension = "D:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

[Xdebug]
Xdebug.profiler_enable=on
xdebug.trace_output_dir= "D:/wamp/logs/xdebug-log"        ; Data file directory
for Xdebug Xdebug.profiler_output_dir= "D:/wamp/logs/xdebug-log"     ; xdebug data file directory
Xdebug.auto_trace = on; turn on automatic tracking
Xdebug.show_exception_trace = on; Turn on exception tracking
Xdebug.remote_autostart = On; Turn on remote debugging auto start off turn off remote debug you can set this to
off Xdebug.remote_enable = on; Turn on remote debugging
XDEBUG.REMOTE_HANDLER=DBGP                 Application Layer Communication protocol
for Zend Studio remote debugging xdebug.remote_host=127.0.0.1 the               IP address of the Zend Studio that allows the connection
xdebug.remote_port=9000                   ; reverse connect the port used by Zend Studio
xdebug.collect_vars = on; collect variable
xdebug.collect_return = on; collect return value
xdebug.collect_params = on; collect parameters
Xdebugbug.max_nesting_level = 10000  
2. Open prefences→php→debug→installed Debuggers Select XDebug
3. Put the test test.php in the D:\wamp\www directory
Breakpoints are generated in the address bar input http://localhost/test.php eclipse




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.