Skip to content

Instantly share code, notes, and snippets.

@AlexanderPavlenko
Created February 4, 2013 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderPavlenko/4706755 to your computer and use it in GitHub Desktop.
Save AlexanderPavlenko/4706755 to your computer and use it in GitHub Desktop.
f = File.open('/tmp/tr', 'w')
set_trace_func proc {
|event, file, line, id, binding, classname|
if event == "call" or event == "return"
f.printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment