Pergunta de entrevista da empresa Red Hat

How would you debug a remote java application?