我在 Mac OSX Lion 上工作,自从安装了 Zend Debugger 并让它能够调试 php Web 应用程序后,我经常遇到这个 Eclipse 启动错误:
扩展点创建扩展时出错
org.eclipse.php.internal.debug.daemon.communication 插件
org.eclipse.php.debug.core 无法加载类
org.eclipse.php.internal.debug.core.zend.communication.DebuggerCommunicationDaemon。
自动激活捆绑包时出错
org.eclipse.php.debug.core (258)。
错误日志包含以下堆栈跟踪:
org.eclipse.debug.core.DebugException: Plug-in org.eclipse.php.debug.core was unable to load class org.eclipse.php.internal.debug.core.model.PHPConditionalBreakpoint.
at org.eclipse.debug.internal.core.BreakpointManager.createBreakpoint(BreakpointManager.java:554
at org.eclipse.debug.internal.core.BreakpointManager.loadBreakpoints(BreakpointManager.java:264
at org.eclipse.debug.internal.core.BreakpointManager.initializeBreakpoints(BreakpointManager.java:449)
at org.eclipse.debug.internal.core.BreakpointManager.getBreakpoints0(BreakpointManager.java:418) at org.eclipse.debug.internal.core.BreakpointManager.start(BreakpointManager.java:408)
at org.eclipse.debug.core.DebugPlugin.start(DebugPlugin.java:682)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
... Omitted for brevity ...
当我重新启动 eclipse 几次后,这个错误通常就会消失。我用谷歌搜索解决方案并尝试重新安装 eclipse 几次。仅当我同时安装了 ADT(Android 开发工具)和 PDT(PHP 开发工具)+ Zend 调试器时,才会出现此错误。
如果您有有关如何解决此问题的信息,请告诉我。与此相关的是,我从未真正让 PDT + Zend 调试器在 Windows 上运行(如调试)PHP 应用程序。
我已经多次看到此错误,甚至在 Zend Eclipse PHP 版本中也是如此。似乎只有当以下两件事为真时才会发生:
1)“断点”视图在 Eclipse 启动时可见(也就是说,您可以看到断点将在哪里列出)
and
2) 在编辑器中打开并处于活动状态的文件不是 PHP 文件
例如,我通过在编辑器中打开一个 CSS 文件,在调试视角下打开断点选项卡,反复得到了这个结果。
要解决这个问题:启动 eclipse 并忽略有关加载插件的错误(暂时)。将 PHP 文件设置为编辑器中的活动文档,然后从调试视角更改为 PHP 视角。关闭 eclipse 并重新启动。重新启动后,错误应该消失并且调试应该再次激活。
我不能保证每次都是解决方案,但我可以使用上述断点/非 PHP 条件可靠地复制此故障(和解决方案)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)