lib/byebug/processor.rb in byebug-2.1.1 vs lib/byebug/processor.rb in byebug-2.2.0
- old
+ new
@@ -50,11 +50,10 @@
# For now we want resolved filenames
if Command.settings[:basename]
File.basename(filename)
else
- # Cache this?
Pathname.new(filename).cleanpath.to_s
end
end
def self.protect(mname)
@@ -107,9 +106,10 @@
always_run(context, file, line, 2)
end
protect :at_tracing
def at_line(context, file, line)
+ Byebug.source_reload if Command.settings[:autoreload]
process_commands(context, file, line)
end
protect :at_line
def at_return(context, file, line)