Can I drop to an IRB prompt from a running Ruby script?
I want to run a script, but then have it give me an IRB prompt at a point in the program with the current state of the program, but not just by running rdebug and having a breakpoint.
you can use ruby-debug to get access to irb
require 'rubygems' require 'ruby-debug' x = 23 puts "welcome" debugger puts "end"
when program reaches debugger you will get access to irb.