Question

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)

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top