Skip to content

Instantly share code, notes, and snippets.

@hawx
Created July 21, 2011 14:46
Show Gist options
  • Save hawx/1097339 to your computer and use it in GitHub Desktop.
Save hawx/1097339 to your computer and use it in GitHub Desktop.
Find those debug statements
module Kernel
def p(*arg)
raise StandardError
rescue => e
$stdout.puts "p: #{e.backtrace[1]}"
end
def puts(*arg)
raise StandardError
rescue => e
$stdout.puts "puts: #{e.backtrace[1]}"
end
def print(*arg)
raise StandardError
rescue => e
$stdout.puts "print: #{e.backtrace[1]}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment