yednamus
yednamus

Reputation: 583

ruby-debug how to go inside a function

what is the command to go inside a function using ruby-debug? Example

class Hello
  def meth1
    debugger
    meth2
  end

  def meth2
    puts "hello"
  end
end

I want to go inside the meth2 and see the execution.Need similar commands like n(next),c(continue),l(current line)

Upvotes: 0

Views: 593

Answers (1)

the Tin Man
the Tin Man

Reputation: 160551

I don't think you searched very hard since Google had a number of useful pages.

Perhaps you'll find "Debugging with ruby-debug" useful, especially Step, Next and Finish.

Upvotes: 1

Related Questions