Skip to content

Instantly share code, notes, and snippets.

@gnurag
Created December 14, 2011 19:08
Show Gist options
  • Save gnurag/1477993 to your computer and use it in GitHub Desktop.
Save gnurag/1477993 to your computer and use it in GitHub Desktop.
Tracing ruby programs with set_trace_func
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