Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Debugging Xtend2 generated Java
Debugging Xtend2 generated Java [message #1863014] Wed, 10 January 2024 17:02 Go to next message
Eclipse UserFriend
Hi. I was wondering about how to debug the Java code generated from Xtend2. Currently, whenever I'm debugging Xtend2 code, the debugger steps through the source .xtend files and the Variables view shows (some but not all) Xtend variables. But in order to properly debug the code I need to step through the generated Java. If I put a breakpoint in the generated Java, execution stops there, but the source brought up by the debugger is still the .xtend, and the variables are seem to be a subset of all the Java variables normally available but not all. For example, I often see "it" and "it_1" which are usually lambda arguments in the generated Java, but I don't see the parameters of the method being debugged. So, is there any way to configure Xtend or the debugger so that it only goes through the Java sources?

Thanks
Re: Debugging Xtend2 generated Java [message #1863020 is a reply to message #1863014] Thu, 11 January 2024 00:45 Go to previous messageGo to next message
Eclipse UserFriend
in the debug view you can click on the stack and show source -> java
Re: Debugging Xtend2 generated Java [message #1863032 is a reply to message #1863020] Thu, 11 January 2024 14:51 Go to previous message
Eclipse UserFriend
Oh great! I missed that!

Thanks!
Previous Topic:Xtext 2.34.0.M1 is out
Next Topic:Dot '.' is not allowed inside double quote in Xtext
Goto Forum:
  


Current Time: Fri Jul 04 06:49:57 EDT 2025

Powered by FUDForum. Page generated in 0.04844 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top