public
Last active

debug_log example

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7
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'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.