class Byebug::ThreadCommand::SwitchCommand
Switches to the specified thread
def self.description
def self.description <<-DESCRIPTION th[read] sw[itch] <thnum> #{short_description} DESCRIPTION end
def self.regexp
def self.regexp /^\s* sw(?:itch)? (?: \s* (\d+))? \s*$/x end
def self.short_description
def self.short_description "Switches execution to the specified thread" end
def execute
def execute return puts(help) unless @match[1] context, err = context_from_thread(@match[1]) return errmsg(err) if err display_context(context) context.switch processor.proceed! end