Inspect ConceptFunction parameters at runtime?? Follow
Hi,
it's possibile to inspect concept function parameters at runtime?
For example parameters like genContext, editorContext, childNode, parentNode, link ecc?
I'm studing MPS and while it's possible to look at the definition of these functions and parameters it's not clear at first their value at runtime.
I tried with a breakpoint :-) but it does not work as I expected.
Then I tried an sout/println statement but I have not seen any output.
Thx,
Mar
it's possibile to inspect concept function parameters at runtime?
For example parameters like genContext, editorContext, childNode, parentNode, link ecc?
I'm studing MPS and while it's possible to look at the definition of these functions and parameters it's not clear at first their value at runtime.
I tried with a breakpoint :-) but it does not work as I expected.
Then I tried an sout/println statement but I have not seen any output.
Thx,
Mar
Please sign in to leave a comment.
the message for example for a node, on the Messages tab is not very usefull.
My approach was similar to the approach one can use when developing in Java: if you don't know what a method receives you can put a breakpoint on that method and inspect parameters and local vars.
Let's say... scopes, the reference scope function has many arguments: exists, referenceNode, contextNode, containingLink, linkTarget, operationContext, enclosingNode, model, position, contextRole
So the question is: in case of missing documentation there is a suggested technic to try to figure out the possibilities that the framework offer?
Thx,
Mar
The best source of documentation, other than that is in the MPS source code, open the MPS project with Idea and look at the javadoc in the implementation. Not ideal, and I would personally really like an easier way to find this information.