Monkeypatch to save the current IRB statement to be run and make the instruction sequence “filename” unique. Possibly not needed.
# File cli/ruby-debug/commands/irb.rb, line 96 def evaluate(line, line_no) $rdebug_irb_statements = line @line_no = line_no set_last_value(@workspace.evaluate(self, line, irb_path, line_no)) # @workspace.evaluate("_ = IRB.conf[:MAIN_CONTEXT]._") # @_ = @workspace.evaluate(line, irb_path, line_no) end