Module: Debugger::SteppingFunctions

Defined in:
lib/ruby-debug/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

:nodoc:



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/ruby-debug/commands/stepping.rb', line 4

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