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 = if ctx.nil? pr("thread.errors.no_thread") elsif ctx == context pr("thread.errors.current_thread") elsif ctx.ignored? pr("thread.errors.ignored", arg: thnum) end [ctx, err] end