Is it possible to remote debug android vm by gradlew?

I can successfully installdebug into android vm, however, I have no idea how to remote debug my apps. I’m using Linux OS, has anyone had this issue before

You might want to take a look at the Android documentation for more information on this.