Re: [jruby-user] Debugging between JRuby and Java
Christian MICHON <[email protected]> Sat, 7 Mar 2015 09:07:42 +0100
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CACx2yF8ohxPMPhhiwxkPnYsUJh-tS6LmMbDrfp=CmzJ_w84ovw@mail.gmail.com> |
Embed pry-remote in your gems and code. You'll be able to debug in context remotely. On Mar 6, 2015 9:16 PM, "Jonathan O." <[email protected]> wrote: > I have a large Java project that uses some Ruby scripts (primarily > because of Ruby's support for "yield"). The Ruby code calls Java code > which calls more Ruby code. It's very interleaved, but everything is > driven from Java. > > I'm using embedded jruby-standalone and building a jar-with-dependencies > (via maven). I'm using a maven plugin to run jrubyc and generate .java > files which maven compiles for me. > > When I run the jar-with-dependencies, I can attach my debugger to the > Java process with no problems, but I'd really love to be able to debug > the Ruby code. Is there a solution for this? > > I'm not launching any kind of jruby executable to which I could attach > arguments. It's embedded in the jar and invoked via java -jar. > > (Cross-posted to StackOverflow at > > http://stackoverflow.com/questions/28906844/debugging-between-jruby-and-java > .) > > -- > Posted via http://www.ruby-forum.com/. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >