class Byebug::ThreadStopCommand


Stop execution of a thread.

def description

def description
  prettify <<-EOD
    th[read] stop <n>  Stops thread <n>.
  EOD
end

def execute

def execute
  c, err = parse_thread_num_for_cmd('thread stop', @match[1])
  return errmsg(err) if err
  c.suspend
  display_context(c)
end

def names

def names
  %w(thread)
end

def regexp

def regexp
  /^\s* th(?:read)? \s+ stop \s* (\S*) \s*$/x
end