Hi, (2012/04/20 14:33), ankopainting (Anko Painting) wrote: > It has an example, but I'll give you another one; > > #!ruby > # > > set_trace_func2 proc { |event, file, line, id, binding, classname, return_value| > if event == "line" > STDERR.puts "#{line}: -> #{return_value.inspect}" > end > } > > i = 4 > words = %w!brat cat apple!.sort > > # end of ruby > > output; > 10: -> 4 > 11: -> ["apple", "brat", "cat"] > > > ------------------- > > This is my first, simple idea. It would allow your editor to show all return values next to your lines of code by evaluating it all in the browser. > > I will put in a few more set_trace_func feature requests when I can give decent examples to explain them. Thank you. I understand what you want. However, I think it needs performance drawback. I'm not sure it is valuable feature or not against slow down. -- // SASADA Koichi at atdot dot net