9
In the following Ruby code:
#! /usr/bin/env ruby
require 'debugger'
def hello
puts "hello"
if block_given?
yield
end
end
def main
debugger
puts "test begin..."
hello do # <= if you are here
puts "here!" #<= how to get here without setting bp here or step into hello?
end
end
main
It's very common during debugging, I don't care about the implementation of the function that yields to the block, I just want to step into the block directly, without manually setting a break-point there.
Does any support for this kind of "step into block" exist in ruby-debug19 or debugger?