Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » DSL Debugger exits the dsl code and enters java code
DSL Debugger exits the dsl code and enters java code [message #1830793] Tue, 04 August 2020 06:24 Go to next message
Loredana Hozan is currently offline Loredana HozanFriend
Messages: 20
Registered: January 2019
Junior Member
Hello, we have created a debugger for our dsl, the generated code gets processed by another framework, when we debug the dsl code we have the following:
-We have a DSL that calls generated code using lamba expressions that are then passed to an underlying framework.
-When we are debugging the DSL code, and we do a step over, sometimes it happens that the next line of DSL is mapped to java code in the lambda expression. When we do this, the debugger works correctly, even though, there was a big jump in the call stack from the previous DSL line. The new line is being called in the framework, so we have a lot of intermediate functions that don't belong to the DSL generated code.
-When the code in the lambda expression is finished, the step over tries to go the calling code, which is not DSL generated code but framework code, thus we lose the mapping and we get weird errors because we don't even have the source code of the framework.

This behavior seems inconsistent with the behavior of the step over when we enter the framework, since entering the framework was transparent but the exit from the framework was not.
Is this a normal Xtext/Debugger behavior? Which is the official way of having debug working as we expect, i.e. just jumping from DSL code, to DSL code and not jumping to java generated code occasionally.
Re: DSL Debugger exits the dsl code and enters java code [message #1830794 is a reply to message #1830793] Tue, 04 August 2020 06:29 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13628
Registered: July 2009
Senior Member
i dont think Xtext is involved here at all. it might be a problem with jdt debugging.
you might need to digg into step filters in eclipse and might also stumble over bugs in that e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=558907


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 04 August 2020 06:32]

Report message to a moderator

Previous Topic:Adding attributes to a references element
Next Topic:Synchronize changes from the Model to the Embedded Editor in Xtext
Goto Forum:
  


Current Time: Thu Oct 22 08:11:05 GMT 2020

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

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

Back to the top