module Byebug::Helpers::ThreadHelper
def context_from_thread(thnum)
def context_from_thread(thnum) ctx = Byebug.contexts.find { |c| c.thnum.to_s == thnum } err = case when ctx.nil? then pr('thread.errors.no_thread') when ctx == context then pr('thread.errors.current_thread') when ctx.ignored? then pr('thread.errors.ignored', arg: thnum) end [ctx, err] end