Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Debugging Xtext
Debugging Xtext [message #904337] Tue, 28 August 2012 05:11 Go to next message
Eclipse UserFriend
Hi,

as I'm starting to move from Xtext 2.2 to 2.3.1, I need to dive deep into some code.
This is something I want to do with debugging, so I need to set a breakpoint in the generated java class as normal. This was working with the previous versions.
Now he just stops in the Xtend files, but I must debug the java ones!
I could not find an option to change that. is there any possibility?

(and please don't start to discuss what is better, I need the java class debugging! For me it is a dangerous blocker for my project and brings me in huge trouble!)

thanks a lot,
~ingo


Re: Debugging Xtext [message #904365 is a reply to message #904337] Tue, 28 August 2012 06:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you can choose whether the xtend or the java code is shown. There is an enty in the stack trace element context menu. Have a close look at

http://vimeo.com/38425995

Alex
Re: Debugging Xtext [message #904436 is a reply to message #904365] Tue, 28 August 2012 08:28 Go to previous messageGo to next message
Eclipse UserFriend
Yes, thanks. That is what I was looking for.
You made my day Wink
Re: Debugging Xtext [message #905000 is a reply to message #904436] Wed, 29 August 2012 10:35 Go to previous message
Eclipse UserFriend
Ok, I found another problem related to debugging: Conditional Breakpoints

I understand that this is not possible/difficult in Xtend. But in the generated Java code I must be able to use them (I dunno how one can survive without them Wink)
But when debugging the debugger is not stopping on them. Sometimes the debugger is stopping on normal java brekapoints, but not always.
I don't know if this is a bug or if it should work or not???
Also after each regenration all Java breakpoints are lost. This is different to the 2.2-and-earlier world where all those things worked perfekt.

Thanks for your help,
~Ingo
Previous Topic:Semantic model not resolvable by xtext-grammar
Next Topic:deleted
Goto Forum:
  


Current Time: Mon Jul 07 11:53:17 EDT 2025

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

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

Back to the top