lib/byebug/context.rb in byebug-0.0.1 vs lib/byebug/context.rb in byebug-1.0.0
- old
+ new
@@ -6,27 +6,14 @@
attr_accessor :handler
end
class Context
-
- def frame_locals(frame_no=0)
- result = {}
- binding = frame_binding(frame_no)
- locals = eval("local_variables", binding)
- locals.each {|local| result[local.to_s] = eval(local.to_s, binding)}
- result
- end
-
def frame_class(frame_no=0)
frame_self(frame_no).class
end
- def frame_args_info(frame_no=0)
- nil
- end
-
def interrupt
self.stop_next = 1
end
def handler
@@ -40,11 +27,11 @@
def at_catchpoint(excpt)
handler.at_catchpoint(self, excpt)
end
def at_tracing(file, line)
- @tracing_started = File.identical?(file, Byebug::PROG_SCRIPT)
- handler.at_tracing(self, file, line) if @tracing_started
+ handler.at_tracing(self, file, line) if
+ File.identical?(file, Byebug::PROG_SCRIPT)
end
def at_line(file, line)
handler.at_line(self, file, line)
end