Skip to content

Instantly share code, notes, and snippets.

# Function to print hierarchical call trees as the program executes.
# Use "ir.exe -trace" for IronRuby
$CALL_DEPTH = 0
p = proc { |op, file, line, method, b, cls|
if op == "call"
filename = file.nil? ? nil : file.gsub('\\','/')
puts "#{$CALL_DEPTH}\t" + ('| ' * $CALL_DEPTH) + "> #{cls}::#{method} #{filename}:#{line}"
locals = eval("local_variables", b)
local_values = locals.each { |l|
@shri-zz
shri-zz / *.rb
Created February 26, 2009 00:14
bigdecimal\divmod_spec.rb: ruby_bug "#206", "1.8" do #MRI's precision is very low in some cases
bigdecimal\remainder_spec.rb: ruby_bug "Bug #585", "1.8" do
cgi\cookie\value_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/229", "1.8.7" do
cgi\htmlextension\checkbox_group_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/443", "1.8.7" do
cgi\htmlextension\file_field_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/255", "1.8.7" do
cgi\htmlextension\img_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/255", "1.8.7" do
cgi\htmlextension\radio_group_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/444", "1.8.7" do
date\constants_spec.rb: ruby_bug "#", "1.8.6" do
date\constants_spec.rb: ruby_bug "#", "1.8.6" do
date\infinity_spec.rb: ruby_bug "#", "1.8.6" do