在Eclipse上进行“初始化Java调试会话”期间出现内部错误。

huangapple go评论73阅读模式
英文:

Internal error during "Initialize Java Debug Session" on Eclipse

问题

我使用的是Eclipse 2020-09,jdk-15,jre1.8.0_271。当我尝试启动调试客户端时,Eclipse向我抛出以下错误:

"Initialize Java Debug Session"期间发生内部错误。
在分支目标12处需要堆栈映射帧
异常详情:
位置:
org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.equals(Ljava/lang/Object;Ljava/lang/Object;)Z @1: ifnonnull
原因:
预期在此位置有堆栈映射帧。
字节码:
0000000: 2bc7 000b 2cc7 0005 04ac 03ac 2b2c b600
0000010: c1ac

与其显示变量状态并让我逐步执行/进入我设置的断点,它只是运行代码直到断点然后停止。这是在最近清空的计算机上全新安装的eclipse,所以我感到相当困惑。我已经检查了JAVA_HOME环境变量,路径变量,eclipse.ini文件,可能还有其他我现在忘记的东西。

英文:

I'm using Eclipse 2020-09, jdk-15, jre1.8.0_271. When I try to launch a debug client, Eclipse throws the below error at me:

   An internal error occurred during: "Initialize Java Debug Session".
Expecting a stackmap frame at branch target 12
Exception Details:
  Location:
    org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.equals(Ljava/lang/Object;Ljava/lang/Object;)Z @1: ifnonnull
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0000000: 2bc7 000b 2cc7 0005 04ac 03ac 2b2c b600
    0000010: c1ac                                   

Instead of showing the variable status and letting me step through/into the breakpoint I've set, it simply runs the code up to the breakpoint and then stops. It's a fresh installation of eclipse on a recently wiped machine, so I am rather at a loss. I've checked the JAVA_HOME env variable, the path variable, the eclipse.ini file, and probably some other things that I'm forgetting now.

答案1

得分: 4

好的,以下是翻译好的内容:

好吧,事实证明我忘记了我在 Eclipse 上安装了 Kotlin 插件(https://marketplace.eclipse.org/content/kotlin-plugin-eclipse),而这显然导致了它的故障。似乎这只是插件中的一个奇怪的 bug,移除插件后恢复了完整的功能。

英文:

Well, turns out I forgot that I installed a kotlin plugin (https://marketplace.eclipse.org/content/kotlin-plugin-eclipse) on eclipse and that was evidently breaking it. Seems to have just been an odd bug in the plugin, as removing it restored full functionality.

huangapple
  • 本文由 发表于 2020年10月22日 04:55:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/64471634.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定