Content-Length: 625327 | pFad | http://github.com/jruby/jruby/wiki/UsingTheJRubyDebugger

E3 UsingTheJRubyDebugger · jruby/jruby Wiki · GitHub
Skip to content

UsingTheJRubyDebugger

Roger Pack edited this page Mar 12, 2020 · 7 revisions

There is a Java-based JRuby implementation of the fast ruby debugger rdebug.

Run jruby -S gem install ruby-debug

Now use it:

You can call it programmatically within the script

require 'ruby-debug'
debugger

and run jruby with the --debug flag:

jruby --debug my_script.rb

Starting the debugger on a Rails application:

cd my_rails_app
jruby --debug -S rdebug script/server

Starting the debugger to test a local ruby program and adding ''lib/'' to the load path:

ruby --debug -S rdebug -Ilib rubyprogram.rb 

just make sure to run it under a jruby with the --debug flags passed to it, or "next" will always act as if it were the "step" command. And the command line prompt won't even appear.

External Resources:

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jruby/jruby/wiki/UsingTheJRubyDebugger

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy