当我调试 Xtend 代码时,我有时希望查看生成的带有所有中间变量的 Java 代码。但是,即使我在这段代码中设置了断点,调试器也会显示 Xtend 代码。这种情况可以改用Java代码吗?
最佳答案
我刚刚找到了这个视频:Debugging in Xtend and Java - side by side ,00:15。 来源是here ,在自 M6 以来的调试部分:
Debugging through Xtend and Java is now fully supported. Setting breakpoints in Xtend works just as in Java and you can even switch to the Java level whenever wished by a context menu action.
Also all the cool features known from the Java debugger, like ‘Display’, ‘Inspect’, or ‘Exception Breakpoints’ are available."
您可以使用调试 View 中任何堆栈帧的上下文菜单中的“显示源”选项在 Java 和 Xtend 之间切换。
关于eclipse - 调试: working with generated Java code instead of Xtend code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12691583/