Created
July 21, 2011 14:46
-
-
Save hawx/1097339 to your computer and use it in GitHub Desktop.
Find those debug statements
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
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