Using step filters when debugging DSL [message #1241125] |
Fri, 07 February 2014 14:15 |
Matthias Spiller 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
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds