Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Debugging Xtext
Debugging Xtext [message #904337] Tue, 28 August 2012 09:11 Go to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
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 10:26 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
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


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Debugging Xtext [message #904436 is a reply to message #904365] Tue, 28 August 2012 12:28 Go to previous messageGo to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
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 14:35 Go to previous message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
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: Tue Apr 23 16:13:01 GMT 2024

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

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

Back to the top