1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# frozen_string_literal: true
require "pry-byebug/helpers/navigation"
module PryByebug
#
# Run until the end of current frame
#
class FinishCommand < Pry::ClassCommand
include PryByebug::Helpers::Navigation
match "finish"
group "Byebug"
description "Execute until current stack frame returns."
banner <<-BANNER
Usage: finish
BANNER
def process
PryByebug.check_file_context(target)
breakout_navigation :finish
end
end
end
Pry::Commands.add_command(PryByebug::FinishCommand)
|