How to install eclipse php plug-in

藏色散人
Release: 2023-03-01 21:52:01
Original
2491 people have browsed it

Eclipse php plug-in installation method: first install eclipse; then configure the php running environment; then open "Prefences→PHP→Debug" in sequence; finally open Installed Debuggers and select XDebug.

How to install eclipse php plug-in

1. First install eclipse and download it from the official website. The installation steps of eclipse will not be described in detail here

2. PHP plug-in address: http://www.eclipse.org/pdt/, which is very detailed. You can choose to directly download the eclipse with the PHP plug-in installed, or you can use it in the existing eclipse. Install the php plug-in directly, choose any of the two methods
How to install eclipse php plug-in

3. Install wampServer, which is an integrated environment for running php. You can also choose other environments, here online Download and install directly

4. Configure the php running environment
(1) Configure php local run
1. Open Prefences→PHP→PHP Executables→Execution Environments →Add

How to install eclipse php plug-in

2. Open Prefences→PHP→Debug
How to install eclipse php plug-in

3 ) Configure php remote Debug environment
1. Start wamp, open PHP→php.ini and add the following code at the end
2. Restart wamp
How to install eclipse php plug-in

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"        ;xdebug 的数据文件目录  xdebug.profiler_output_dir="d:/wamp/logs/xdebug-log"     ;xdebug 的数据文件目录  xdebug.auto_trace = On ;开启自动跟踪  xdebug.show_exception_trace = On ;开启异常跟踪  xdebug.remote_autostart = On ;开启远程调试自动启动 Off 关闭远程debug可以将此项设置为Off  xdebug.remote_enable = On ;开启远程调试  xdebug.remote_handler=dbgp                 ;用于zend studio远程调试的应用层通信协议  xdebug.remote_host=127.0.0.1               ;允许连接的zend studio的IP地址  xdebug.remote_port=9000                   ;反向连接zend studio使用的端口  xdebug.collect_vars = On ;收集变量  xdebug.collect_return = On ;收集返回值  xdebug.collect_params = On ;收集参数  xdebugbug.max_nesting_level = 10000
Copy after login

2. Open Prefences→PHP→Debug→Installed Debuggers and select XDebug

How to install eclipse php plug-in

3. Set test .php is placed in the D:\wamp\www directory
Enter http://localhost/test.php in the address bar. A breakpoint will be generated in eclipse

Description:
When eclipse selects the workspace, select the workspace directly to the www directory of wamp,
This is more convenient.

The above is the detailed content of How to install eclipse php plug-in. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!