lib/byebug/commands/display.rb in byebug-1.8.2 vs lib/byebug/commands/display.rb in byebug-2.0.0

- old
+ new

@@ -1,10 +1,10 @@ module Byebug module DisplayFunctions def display_expression(exp) - print "#{exp} = #{debug_silent_eval(exp).to_s}\n" + print "#{exp} = #{debug_silent_eval(exp).inspect}\n" end def active_display_expressions? @state.display.select{|d| d[0]}.size > 0 end @@ -44,15 +44,10 @@ end end class DisplayCommand < Command def self.always_run - Byebug.annotate = 0 unless Byebug.annotate - if Byebug.annotate > 1 - 0 - else - 2 - end + 2 end def regexp /^\s* disp(?:lay)? \s*$/x end