class Byebug::ThreadSwitchCommand
Switch execution to a different thread.
def description
def description prettify <<-EOD th[read] sw[itch] <n> Switches thread context to <n>. EOD end
def execute
def execute c, err = parse_thread_num_for_cmd('thread switch', @match[1]) return errmsg(err) if err display_context(c) c.switch @state.proceed end
def names
def names %w(thread) end
def regexp
def regexp /^\s* th(?:read)? \s+ sw(?:itch)? (?:\s+(\S+))? \s*$/x end