irb_debug_level.patch

Sho Hashimoto, 04/16/2012 11:38 PM

Download (824 Bytes)

View differences:

lib/irb/init.rb (working copy)
115 115

  
116 116
    @CONF[:AT_EXIT] = []
117 117

  
118
    @CONF[:DEBUG_LEVEL] = 1
118
    @CONF[:DEBUG_LEVEL] = 0
119 119
  end
120 120

  
121 121
  def IRB.init_error
lib/irb/context.rb (working copy)
97 97
      if @echo.nil?
98 98
	@echo = true
99 99
      end
100
      @debug_level = IRB.conf[:DEBUG_LEVEL]
100
      debug_level = IRB.conf[:DEBUG_LEVEL]
101 101
    end
102 102

  
103 103
    def main
......
242 242
    def debug_level=(value)
243 243
      @debug_level = value
244 244
      RubyLex.debug_level = value
245
      SLex.debug_level = value
246 245
    end
247 246

  
248 247
    def debug?