Can't debug with JRuby?!?!?

K

Kenosis

Greetings,

Well, after several years of hoping I finally landed a job that is at
least 50% Ruby development, woo hoo :) Now then, we're also doing a
good bit of JRuby development and I've run into a snag which googling
and searching this group has failed to resolve: I can't debug from
JRuby! I've got to believe I'm doing something wrong that's so obvious
I'm missing it. On JRuby 0.9.8 and 1.0.1, when I try to debug I get
the following (see below) and I can't list the code, set break points
or anything else other than "continue." Straight ruby has no problem
and debugs as usual. I suspect the Signal.trap warning indicates that
what the debugger needs to do is not yet supported but I find it hard
to believe JRuby has gotten as far as it has w/the inability to debug
with it. Anyone know what's up?

Best,

Ken

516-> jruby -r debug -d /tmp/x.rb
/usr/lib/jruby-ut0.9/lib/ruby/1.8/debug.rb:764 warning: Signal.trap:
Signals is currently not implemented in JRuby and will not work
Debug.rb
Emacs support available.

/tmp/x.rb:1:
(rdb:1) list
[-4, 5] in /tmp/x.rb
No sourcefile available for /tmp/x.rb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top