When configuring the launch configuration, did you select the "Listen" mode of the debugger? The command line arguments that you show look like the usual โAttachโ settings, while the arguments for โListenโ look like this: -agentlib:jdwp=transport=dt_socket,server=n,address=yourhost.yourdomain:5005, suspend=y,onthrow=<FQ exception class name>,onuncaught=<y/n> (In particular, in your arguments there is no application address - your CLI program - to connect to IDEA at startup.)
I read a post saying that the โonthrowโ argument might not be needed for general debugging, but I have not tried it myself.
source share