Update base.rb

insert debug code