Skip to content

Instantly share code, notes, and snippets.

@peter
Created November 5, 2010 09:52
Show Gist options
  • Save peter/663900 to your computer and use it in GitHub Desktop.
Save peter/663900 to your computer and use it in GitHub Desktop.
debug_log example
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