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