Sha256: b12c7f259d5f23619d6008e2c20df9a7f7e693fb48b628908919f9bda1f21f15
Contents?: true
Size: 739 Bytes
Versions: 26
Compression:
Stored size: 739 Bytes
Contents
require 'byebug/command' require 'byebug/helpers/parse' module Byebug # # Implements the next functionality. # # Allows the user the continue execution until the next instruction in the # current frame. # class NextCommand < Command include Helpers::ParseHelper def self.regexp /^\s* n(?:ext)? (?:\s+(\S+))? \s*$/x end def self.description <<-EOD n[ext][ nnn] #{short_description} EOD end def self.short_description 'Runs one or more lines of code' end def execute steps, err = parse_steps(@match[1], 'Next') return errmsg(err) unless steps context.step_over(steps, context.frame.pos) processor.proceed! end end end
Version data entries
26 entries across 25 versions & 3 rubygems