Class: Debugger::StartCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug-ide/commands/control.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Command

Command::DEF_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, file_filter_supported?, #find, inherited, #initialize, load_commands, #match, method_missing, options, unescape_incoming

Constructor Details

This class inherits a constructor from Debugger::Command

Class Method Details

.help(cmd) ⇒ Object



98
99
100
101
102
# File 'lib/ruby-debug-ide/commands/control.rb', line 98

def help(cmd)
  %{
    run prog script
  }
end

.help_commandObject



94
95
96
# File 'lib/ruby-debug-ide/commands/control.rb', line 94

def help_command
  'start'
end

Instance Method Details

#executeObject



88
89
90
91
# File 'lib/ruby-debug-ide/commands/control.rb', line 88

def execute
  @printer.print_debug("Starting: running program script")
  Debugger.run_prog_script #Debugger.prog_script_running?
end

#regexpObject



84
85
86
# File 'lib/ruby-debug-ide/commands/control.rb', line 84

def regexp
  /^\s*(start)(\s+ \S+ .*)?$/x
end