1、安装wamp并启动,启动后在浏览器输入Localhost如果能访问说明安装启动成功。
2、打开eclipse,点击Help菜单——>eclipse marketplace,打开后搜索php,找到pdt安装即可。
3、安装好后配置php,点击windwos菜单——>preferences——>php——>php executables,添加php运行环境,选择wamp目录下的bin目录中的php.exe,配置文件选择wamp——>bin——>apache——>bin——>php.ini即可。
4、编辑apache——>bin——>php.ini找到xdebug配置,加入以下或修改成以下配置
xdebug.auto_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = on
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_mode = req
xdebug.remote_handler = dbgp
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p