Class: Debugger::ContinueCommand

### Home Classes Methods

### In Files

- lib/ruby-debug/commands/continue.rb

### Parent

Debugger::Command

### Methods

- ::help
- ::help_command
- #execute
- #regexp

### Class/Module Index

Quicksearch

- Debugger
- Debugger::AddBreakpoint
- Debugger::Breakpoint
- Debugger::Context
- Debugger::ContinueCommand
- Debugger::DeleteBreakpointCommand
- Debugger::FinishCommand
- Debugger::HelpCommand
- Debugger::IRBCommand
- Debugger::InfoCommand
- Debugger::JumpCommand
- Debugger::KillCommand
- Debugger::ListCommand
- Debugger::LocalInterface
- Debugger::LocalInterface::Debugger
- Debugger::MethodCommand
- Debugger::MethodSigCommand
- Debugger::NextCommand
- Debugger::ParseFunctions
- Debugger::Processor
- Debugger::QuitCommand
- Debugger::ReloadCommand
- Debugger::SetCommand
- Debugger::ShowCommand
- Debugger::SkipCommand
- Debugger::SourceCommand
- Debugger::StepCommand
- Debugger::VarClassVarCommand
- Debugger::VarInheritCommand
- Debugger::VarLocalCommand
- Debugger::WhereCommand
- Printers
- Printers::Base
- Printers::Base::MissedArgument
- Printers::Base::MissedPath
- Printers::Plain
- Mocha
- Mocha::Call
- Mocha::Expectation
- Mocha::Mock
- MiniTest
- MiniTest::Assertions
- MiniTest::Expectations
- TestDsl
- TestDsl::ClassMethods
- TestDsl::Shared
- Kernel
- Module
- PrinterHelpers
- TestInterface

No matching classes.

# Debugger::ContinueCommand

Implements debugger "continue" command.

### Public Class Methods

help(cmd) click to toggle source

    # File lib/ruby-debug/commands/continue.rb, line 30
    def help(cmd)
      %{
        c[ont[inue]][ nnn]\trun until program ends, hits a breakpoint or reaches line nnn
      }
    end

help_command() click to toggle source

    # File lib/ruby-debug/commands/continue.rb, line 26
    def help_command
      'continue'
    end

### Public Instance Methods

execute() click to toggle source

    # File lib/ruby-debug/commands/continue.rb, line 11
    def execute
      if @match[1] && !@state.context.dead?
        filename = File.expand_path(@state.file)
        line_number = get_int(@match[1], "Continue", 0, nil, 0)
        return unless line_number
        unless LineCache.trace_line_numbers(filename).member?(line_number)
          errmsg pr("continue.errors.unstopped_line", line: line_number, file: filename)
          return
        end
        @state.context.set_breakpoint(filename, line_number)
      end
      @state.proceed
    end

regexp() click to toggle source

    # File lib/ruby-debug/commands/continue.rb, line 7
    def regexp
      /^\s* c(?:ont(?:inue)?)? (?:\s+(.*))? $/
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.