Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Debugging Xtend2 generated Java
Debugging Xtend2 generated Java [message #1863014] Wed, 10 January 2024 22:02 Go to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
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 05:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
in the debug view you can click on the stack and show source -> java

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Debugging Xtend2 generated Java [message #1863032 is a reply to message #1863020] Thu, 11 January 2024 19:51 Go to previous message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
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: Wed Dec 04 13:30:13 GMT 2024

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

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

Back to the top