Module: Byebug::SteppingFunctions

Defined in:
lib/byebug/commands/stepping.rb

Overview

Mixin to assist command parsing

Instance Method Summary collapse

Instance Method Details

#parse_stepping_args(command_name, match) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/byebug/commands/stepping.rb', line 6

def parse_stepping_args(command_name, match)
  if match[1].nil?
    force = Setting[:forcestep]
  elsif match[1] == '+'
    force = true
  elsif match[1] == '-'
    force = false
  end
  steps = get_int(match[2], command_name, 1)
  return [steps, force]
end