class DEBUGGER__::ThreadClient

def constant_name? name

TODO: support non-ASCII Constant name
def constant_name? name
  case name
  when /\A::\b/
    constant_name? $~.post_match
  when /\A[A-Z]\w*/
    post = $~.post_match
    if post.empty?
      true
    else
      constant_name? post
    end
  else
    false
  end
end