class DEBUGGER__::Session

def switch_thread n

def switch_thread n
  thcs, _unmanaged_ths = update_thread_list
  if tc = thcs[n]
    if tc.waiting?
      @tc = tc
    else
      @ui.puts "#{tc.thread} is not controllable yet."
    end
  end
  thread_list
end