Module: Byebug::SteppingFunctions

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

Overview

Mix-in module to assist in command parsing.

Instance Method Summary collapse

Instance Method Details

#parse_stepping_args(command_name, match) ⇒ Object



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

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