使用 eclipse 和 xdebug 进行调试时出现问题
经过长时间的反复试验,我终于正确配置了 xdebug,但我在 eclipse 上遇到了一些问题。
- 首先,“运行>”中只有一个选项。调试为'菜单,它是'XSL Transformation'并且它是灰色的!为什么我可以选择PHP脚本或网页?
- 其次,它完全忽略了我的断点!我设置了它们,但 Eclipse 忘记了它们!它只在第一行处中断,仅此而已!
- 我只能在 php 的第一部分设置断点 - 因此,如果我有几行 PHP,然后是 HTML,然后是更多 PHP,那么最左边的栏中没有蓝色区域来设置断点。
我在这里完全错过了一些东西吗?我正在运行 WAMP 和 Eclipse for PHP Developers (Helios)。任何帮助都会很棒。
After a long process of trial and error, I finally got xdebug configured correctly but I'm having a few issues with eclipse.
- First, there is only one option in the 'Run > Debug As' menu and it is 'XSL Transformation' and it is grayed out! Why can I select PHP Script or Web Page?
- Second, It just completely ignores my breakpoints! I set em and eclipse forgets em! It only breaks at the first line and that's it!
- I'm only able to set breakpoints in the first bit of php - so if I have a few lines of PHP, followed by HTML and then followed by some more PHP, there is no blue area in the far left bar to set breakpoints.
Am I just completely missing something here? I'm running WAMP and Eclipse for PHP Developers (Helios). Any help would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试了 NetBeans,它运行良好 - 我已经隔离了我的问题所在。 Eclipse 似乎是更好/更完整的 IDE,但是我没有时间再摆弄它了 - NetBeans FTW,也许当我不那么菜鸟时我会再次检查 Eclipse。
Tried out NetBeans and it is working great - I've already isolated what my issue was. Eclipse seems like it is the better/more-complete IDE, however I don't have time to mess around with it anymore - NetBeans FTW, maybe I'll checkout eclipse again when i'm not so noobish.