Created
November 5, 2010 09:52
-
-
Save peter/663900 to your computer and use it in GitHub Desktop.
debug_log example
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
require 'rubygems' | |
require 'debug_log' | |
my_list = [:a, :b, :c] | |
my_number = 5 | |
debug.log("after variable initialization", "my_number", "my_list") | |
# => DebugLog | after variable initialization | my_number="5" (Fixnum), my_list="[:a, :b, :c]" (Array) | /Users/peter/tmp/debug-example.rb:6:in `foo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment