Skip to content

Instantly share code, notes, and snippets.

@djo
Created November 14, 2014 13:37
Show Gist options
  • Save djo/7c47c0f41dceb9ba6a42 to your computer and use it in GitHub Desktop.
Save djo/7c47c0f41dceb9ba6a42 to your computer and use it in GitHub Desktop.
Handle ruby trace
proc_object = proc do |event, file, line, id, binding, klass|
puts "#{event} in #{file}/#{line} #{id} #{klass}"
end
set_trace_func(proc_object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment