Pregunta de entrevista de Red Hat

How would you debug a remote java application?