lib/byebug/context.rb in byebug-2.3.0 vs lib/byebug/context.rb in byebug-2.3.1

- old
+ new

@@ -6,9 +6,12 @@ def stack_size if backtrace = Thread.current.backtrace_locations backtrace.drop_while { |l| ignored(l.path) || l.path == '(eval)' } .take_while { |l| !ignored(l.path) } .size + else + print 'No backtrace available!!' + return 0 end end def real_stack_size if backtrace = Thread.current.backtrace_locations