Debugging Graal-enabled OpenJDK

Doug Simon doug.simon at oracle.com
Mon Oct 3 18:02:07 UTC 2016


> On 03 Oct 2016, at 19:55, Andrew Haley <aph at redhat.com> wrote:
> 
> On 03/10/16 18:18, Tom Rodriguez wrote:
>> 
>>> On Oct 3, 2016, at 10:12 AM, Andrew Haley <aph at redhat.com> wrote:
>>> 
>>> So I'm now seeing Graal classes loaded -- lots of them -- but I can't
>>> set a breakpoint on any of them.  I'm using the Eclipse configuration
>>> but whenever I try to Navigate > Open Type > I can't see any Graal
>>> classes.  I can see the standard Java library classes, but not the
>>> Graal ones.  I want to step through compilation.
>> 
>> I assume you built this yourself?
> 
> Yes.
> 
>> Are running with the eclipse project files produced by “mx eclipseinit”?  That should let you debug Graal.  I’ve never tried debugging it without that.
> 
> Well, I think I am, but I confess my knowledge of Eclipse is limited.
> I tried to load the project files into Eclipse, but I don't know if
> that worked.  The instructions about how you load a project file
> into Eclipse are not at all specific.

Sorry about that - we’ve attempted to make it as easy as possible:

https://github.com/graalvm/graal-core/blob/master/docs/Eclipse.md

Please file an issue (or even better, a PR!) against graal-core on github if you find something missing/inaccurate on that page.

-Doug


More information about the graal-dev mailing list