Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using step filters when debugging DSL
Using step filters when debugging DSL [message #1241125] Fri, 07 February 2014 14:15
Matthias Spiller is currently offline Matthias SpillerFriend
Messages: 13
Registered: September 2013
Junior Member
To whom it may concern:

We have a xbase based DSL that is mapped to Java code.
We use the JDT to debug the execution of this DSL.

What we have found is that step filters are not working when stepping (at least with JDT 3.7.x and 3.8.x)
Configured step filters are just ignored when doing a "Step Into" while being in a DSL file.

The reason is a check in org.eclipse.jdt.internal.debug.core.model.JDIThread.StepHandler.attachFiltersToStepRequest:

...
if (currentLocation == null || !JAVA_STRATUM_CONSTANT.equals(currentLocation.declaringType().defaultStratum())) {
    return;
}
...


The defaultStratum returned is "MyDsl" and not "Java".
Therefore the return statement is reached and the step filters are ignored.

Our current solution is to provide our own JDIDebugTarget returning our own JDIThread from newThread where we have overwritten the method mentioned above.

Maybe this is helpful for one or two.

Matthias
Previous Topic:Generating Java code for models with link errors
Next Topic:Xtext support for multiple file extension
Goto Forum:
  


Current Time: Fri Dec 04 08:55:04 GMT 2020

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

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

Back to the top