evalInContext was: API required for Truffle debugging

Jaroslav Tulach jaroslav.tulach at oracle.com
Wed Sep 30 09:33:08 UTC 2015


Hello Martine,
thanks for your usage of Truffle debugging API. You were right, the 
"evalInContext" method was missing. But since 
http://lafo.ssw.uni-linz.ac.at/hg/truffle/rev/dc91e9ee752e
the omission should be fixed. There is now
http://lafo.ssw.uni-linz.ac.at/javadoc/truffle/latest/com/oracle/truffle/api/debug/SuspendedEvent.html#eval-java.lang.String-com.oracle.truffle.api.frame.FrameInstance-which your debugger can use to evaluate language snippets in just suspended 
execution.

The API should be OK, the implementation (in the API itself as well as in 
various languages) may still needs some work. I'll be glad to address your 
needs based on your evaluation report.
-jt

### Tuesday 22 of September 2015, 09:06:52 @ Martin Entlicher ###
> I've composed several problems, which complicate debugging of languages
> interpreted in Truffle:
> 
> 2) Add an equivalent of DebugSupportProvider.evalInContext()
>    Reason:
>    It is problematic to get an instance of DebugSupportProvider,
> reflection code is necessary.
>    We need it to be able to evaluate a code snippet in a halted
> execution context
>    This should probably be added to SuspendedEvent.



More information about the graal-dev mailing list