Java applications can be remotely debugged by following these two simple steps:

1. Pass remote debugging arguments to JVM
2. Configure IDE

Please check out here in this article.