Say I have a loop in my code that calls the rails debugger a few times
def show animals = [\'dog\', \'cat\', \'owl\', \'tiger\'] for animal in animals
If I want control back, I just do
eval return
and I will exit the currently running function, which will usually kick me back to the IRB [rails console] prompt.