# Ruby-debug step out of current method

**URL:** <https://www.ruby-forum.com/t/ruby-debug-step-out-of-current-method/149436>\
**Category:** Ruby\
**Created:** [September 24, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/ruby-debug-step-out-of-current-method/149436 "2008-09-24T21:14:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpc2148](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Post date:** [September 24, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/ruby-debug-step-out-of-current-method/149436/1 "2008-09-24T21:14:19Z")

</div>

Please tell me there is a step out command for ruby-debug . I hate  
having to set breakpoints and continuing to them all the time .

---

<div class="post-metadata">

**Author:** ![lpc2148](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Post date:** [September 24, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/ruby-debug-step-out-of-current-method/149436/2 "2008-09-24T23:11:39Z")

</div>

Lex W. wrote:

> Please tell me there is a step out command for ruby-debug . I hate  
> having to set breakpoints and continuing to them all the time .

Took me three tries to find something. Here’s my results:

irb(main):032:0\> require ‘ruby-debug’  
de=\> true  
irb(main):033:0\> debugger  
[158, 167] in  
/Users/rogerpack/dev/ruby\_186\_installed/lib/ruby/1.8/irb(rdb:1) help  
Type 'help ’ for help on a specific command

Available commands:  
backtrace delete enable help next quit show trace  
break disable eval info p reload source undisplay  
catch display exit irb pp restart step up  
condition down finish list ps save thread var  
continue edit frame method putl set tmate where

(rdb:1) help step  
s[tep][±]?[nnn] step (into methods) once or nnn times  
‘+’ forces to move to another line.  
‘-’ is the opposite of ‘+’ and disables the force\_stepping setting.  
(rdb:1) help up  
up[count] move to higher frame  
(rdb:1) help continue  
c[ont[inue]][nnn] run until program ends, hits a breakpoint or reaches  
line nnn  
(rdb:1) help finish  
fin[ish] [frame-number] Execute until selected stack frame returns.

If no frame number is given, we run until the currently selected frame  
returns. The currently selected frame starts out the most-recent  
frame or 0 if no frame positioning (e.g “up”, “down” or “frame”) has  
been performed. If a frame number is given we run until that frame  
returns.

-=R
