Slide 142
Slide 142 text
set_trace_func proc do |event, file, line, id, binding, cn|
printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, cn
end
t = Test.new
t.test
#=> line prog.rb:11 false
#=> c-call prog.rb:11 new Class
#=> c-call prog.rb:11 initialize Object
#=> c-return prog.rb:11 initialize Object
#=> c-return prog.rb:11 new Class
#=> line prog.rb:12 false
#=> call prog.rb:2 test Test
#=> line prog.rb:3 test Test
#=> line prog.rb:4 test Test
#=> return prog.rb:4 test Test