Red Hat interview question

How would you debug a remote java application?