Red Hat Interview Question

How would you debug a remote java application?