eclipse php 开发

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。 https://blog.csdn.net/kucoll/article/details/60321479

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



猜你喜欢

转载自blog.csdn.net/kucoll/article/details/60321479