在Eclipse IDE中开始使用PHP [英] Getting started with PHP in Eclipse IDE

查看:682
本文介绍了在Eclipse IDE中开始使用PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名Java程序员,但最近找到了一份使用PHP和mySQL的工作。我为此查找了很好的IDE(我之前使用的是Netbeans),推荐使用Eclipse。

I am a Java programmer, but recently got a job working with PHP and mySQL. I looked up good IDEs for this (I previously used Netbeans) and Eclipse was recommended.

当我尝试开始工作时,我收到以下错误消息:

When I tried to start working, I got the following error message:

Error launching 'firstfile'

The debug session could not be started.
Please make sure that the debugger is properly configured as a php.ini directive."

我在谷歌上看了这个并尝试了一些解决方案。我甚至重新安装了Eclipse。

I looked this up on Google and tried a bunch of the solutions proposed. I even re-installed Eclipse.

我有以下内容:


  1. eclipse-php-helios-win32(full)

  2. WampServer2.1

我的配置在Window-> Settings-> PHP-> PHP Executables下:

My configuration is under Window->Settings->PHP->PHP Executables is:

Name: exec-wamp
Executable Path: C:\wamp\bin\php\php5.3.5\php.exe
PHP ini file: C:\wamp\bin\php\php5.3.5\php.ini
SATI Type: CLI
PHP debugger: XDebug

注意:我试图将调试器切换到Zend Debugger,这没有帮助。

NOTE: I tried to switch debuggers to Zend Debugger and this did not help.

推荐答案

查看 http://www.xdebug.org/docs/install#configur上的资源e-php 并确保按照描述配置所有内容。

Check out the resource at http://www.xdebug.org/docs/install#configure-php and make sure you have everything configured as-described.

具体来说:


  1. 确保在 php.ini中正确设置调试器<​​/ code>

  2. 取消注释<$ c中的字符串$ c> php.ini

  3. 重启你的网络服务器(如果你在 modphp

  4. 确保在你的phpinfo()中设置了 xdebug

  1. Ensure that your debugger is set up correctly in php.ini
  2. Uncomment the string in php.ini
  3. Restart your web-server (if you are on modphp)
  4. Make sure that in your phpinfo() you have set xdebug

这篇关于在Eclipse IDE中开始使用PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆