You can follow my answer here: How can we debug a code in intellij which is present on a remote server? - #2 by nhac.tat.nguyen