This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258902 - Cannot step into Ruby from Truffle JavaScript
Summary: Cannot step into Ruby from Truffle JavaScript
Status: RESOLVED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-19 09:31 UTC by Jaroslav Tulach
Modified: 2016-04-19 13:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2016-04-19 09:31:51 UTC
When debugging mixed Java/JavaScript/Ruby project, I cannot step into Ruby.

1. GraalVM v 0.11 - 2016-04-13 for Linux
2. NetBeans -Dcluster.config=basic build with debugger.jpda.truffle as of Apr 18: netbeans$ hg id
a85e20540d7d tip
3. Sample "sieve" repository @ 4549d5303761f72e4429f8689e27680c946dd953
$ git clone https://github.com/jtulach/sieve.git

Run NetBeans on top of the GraalVM. Open ruby+js/fromjava Maven project. Locate Main.java, put breakpoint to line 31 ("vm.eval(js);"). Debug the project. Once the breakpoint is hit, step into. JavaScript is shown.

Put breakpoint to line 25 (call to "this.natural.next()") where natural comes from Ruby. Continue. When the execution is stopped at line 25, do step into. 

Problem: the Ruby code isn't shown.
Comment 1 Jaroslav Tulach 2016-04-19 13:39:24 UTC
Probably caused by
https://github.com/jruby/jruby/pull/3797

Sorry for bothering.