Project

General

Profile

Bug #6301 » irb_debug_level.patch

sho-h (Sho Hashimoto), 04/16/2012 11:38 PM

View differences:

lib/irb/init.rb (working copy)
@CONF[:AT_EXIT] = []
@CONF[:DEBUG_LEVEL] = 1
@CONF[:DEBUG_LEVEL] = 0
end
def IRB.init_error
lib/irb/context.rb (working copy)
if @echo.nil?
@echo = true
end
@debug_level = IRB.conf[:DEBUG_LEVEL]
debug_level = IRB.conf[:DEBUG_LEVEL]
end
def main
......
def debug_level=(value)
@debug_level = value
RubyLex.debug_level = value
SLex.debug_level = value
end
def debug?
    (1-1/1)