code: def _thread_to_xml(self, thread):
          
          name = pydevd_xml.make_valid_xml_value(thread.getName())
          cmdText = '<thread name="%s" id="%s" />' % (quote(name), get_thread_id(thread))
          return cmdText
docs: thread information as XML