PHP IDE 类似于 java 动态编译代码
我有一个关于 IDE 的问题:对于 Java,您可以使用 Netbeans 或 Eclipse,它们都是非常适合编码的 IDE。现在,如果我拼写错误,Eclipse 会立即用红线报告(例如拼写错误的函数调用)。
据我所知,这适用于某种动态虚拟编译。
现在,为什么根本没有 IDE 为 PHP 提供相同的东西?只是一种“即时解释”,它并不真正执行所有函数,但它解释代码。有时它会使编程变得更加容易。这有可能吗?如果不是,为什么不呢?
感谢您的回复;)
弗洛
I got a question about the IDEs: With Java, you use Netbeans or Eclipse, which are very great IDEs to code. Now, if I do a misspelling, Eclipse reports it immediately with a red line (for example a function call which was misspelled).
As I know, this works with some sort of dummy-compiling on the fly.
Now, why is there no IDE at all which provides the same stuff for PHP? Just a sort of "on the fly-interpreting" which does not really execute all functions, but it interprets the code. It would sometimes make programming much easier. Is this possible at all? If no, why not?
Thanks for response ;)
Flo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Eclipse 的 PDT 开发工具 插件正是这样做的。只需告诉它您的 PHP 解释器位于何处即可。请记住,它当然无法捕获运行时发生的错误。所以它只会报告实际的语法错误。
The PDT Development Tools plugin for Eclipse does exactly that. Just tell it where your PHP interpreter sits. And keep in mind that it of course can't catch errors that occur at runtime. So it will only report actual syntax errors.