lib/byebug/context.rb in byebug-2.5.0 vs lib/byebug/context.rb in byebug-2.6.0
- old
+ new
@@ -4,21 +4,21 @@
class << self
def stack_size
if backtrace = Thread.current.backtrace_locations(0)
backtrace.drop_while { |l| !ignored(l.path) }
- .drop_while { |l| ignored(l.path) || l.path == '(eval)' }
+ .drop_while { |l| ignored(l.path) }
.take_while { |l| !ignored(l.path) }
.size
else
print 'No backtrace available!!'
0
end
end
def real_stack_size
- if backtrace = Thread.current.backtrace_locations(1)
+ if backtrace = Thread.current.backtrace_locations(0)
backtrace.size
end
end
def ignored(path)
@@ -73,17 +73,17 @@
def at_catchpoint(excpt)
handler.at_catchpoint(self, excpt)
end
def at_tracing(file, line)
- handler.at_tracing(self, file, line) unless IGNORED_FILES.include?(file)
+ handler.at_tracing(self, file, line)
end
def at_line(file, line)
- handler.at_line(self, file, line) unless IGNORED_FILES.include?(file)
+ handler.at_line(self, file, line)
end
def at_return(file, line)
- handler.at_return(self, file, line) unless IGNORED_FILES.include?(file)
+ handler.at_return(self, file, line)
end
end
end