Home » Modeling » TMF (Xtext) » JvmModelInferrer and debug: skip steps?
|
Re: JvmModelInferrer and debug: skip steps? [message #1384948 is a reply to message #1384699] |
Tue, 03 June 2014 09:15 |
|
On 30/05/2014 16:21, Victor Noël wrote:
> Hi,
>
> In my language, I am exploiting the association (with
> JvmModelAssociator) between the generated elements and the elements of
> my grammar so that in debug the debugger goes through the various
> elements of my grammar.
>
> Unfortunately, it is possible that to one element of my grammar, I
> associate multiple java methods called in sequence or calling each others.
>
> I would like to know if it is possible to make the debugger step only
> once for all these methods and not once for each.
If I remember correctly, you should create a child appendable using the
method trace(true); true should mean "skip the additional steps" in the
child appendable that you'll use to generate Java code...
hope this helps
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| |
Re: JvmModelInferrer and debug: skip steps? [message #1385081 is a reply to message #1384950] |
Wed, 04 June 2014 08:58 |
Victor Noël Messages: 60 Registered: April 2010 |
Member |
|
|
Well actually it is not as easy as it seems
I did a bit of voodoo programming (trying many different call to trace, true/false parameters, in various place of my code) but I didn't even get a change to the behaviour of the debugger...
The thing is, I generate my methods using the "body = [...]" or "body = '''...'''" call which seems to store the ITreeAppendable and the generator call trace on it, so it is not clear where I can do something to change that... do I need to bypass the generator for this particular thing?
Also, I'm not so clear about the meaning of the boolean parameter of trace, according to the name, it seems that true means to use for debugging, but since quasi-all the calls to trace in xtext code is with false, that it is initialised as false when nothing is specified, I guess it has the behaviour you explained Lorenzo...
If someone can clarify some of these things for me, it would be very helpful
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 14:16:10 GMT 2024
Powered by FUDForum. Page generated in 0.04713 seconds
|