Skip to main content



      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 02:24 Go to next message
Eclipse UserFriend
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 02:29 Go to previous message
Eclipse UserFriend
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

[Updated on: Tue, 04 August 2020 02:32] by 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 Jul 10 00:12:06 EDT 2025

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

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

Back to the top