Created
December 14, 2011 19:08
-
-
Save gnurag/1477993 to your computer and use it in GitHub Desktop.
Tracing ruby programs with set_trace_func
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_trace_func proc { |event, file, line, id, binding, classname| | |
printf "%28s %8s %s:%-2d %10s %8s\n", Time.now, event, file, line, id, classname | |
} | |
puts "*** Hello World\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment