Debugging gradle config kicks off extra remote run process

Answered

Debug was working as expected yesterday. Today, without making any changes, running Debug against my one Gradle configuration suddenly kicks of a second process, :run (the logo corresponds to what I believe is a Remote config)

and my normal step-through / step-into debug buttons are not available. I cannot stop/disconnect/terminate one process without losing the other. 

The Console tab on my normal process (named "regular" in the screenshot) has a line "Connected to the VM started by ':run: (localhost:50288)" The localhost port is different on each attempt.

Does anyone know why this happened or what might have caused it?

0
5 comments

Second is a tab that IDE creates for the java process debug that was launched by corresponding Gradle task. Essentially, this is the tab for the Remote Debug configuration (which is automatically created when you launch Gradle task in Debug mode). See also this comment for more details.

We plan to address some related usability issues: https://youtrack.jetbrains.com/issue/IDEA-200694

When you do not use Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Runner | Delegate IDE build/run actions to Gradle option - IDE will only create one process (and configuration) for debugging.

1
Avatar
Permanently deleted user

Hi Andrey, thanks for the response. I unchecked the Delegate IDE build/run actions to Gradle option and two processes are still being created. Any other tips or information I can provide that might help lead to a solution?

It was working properly (with only one process) on Tuesday and I literally didn't touch anything IntelliJ or Gradle related when it suddenly started spinning two processes. 

0

What run debug configuration do you launch? Attach screenshot of it.

Does it help to delete Run Configuration and launch debug again?

0
Avatar
Permanently deleted user

Here's my Run/Debug Configurations window:I've tried deleting it and recreating it but the same thing happens

0

You launch Gradle Run configuration. You should use IDE's own runner: i.e. Spring Boot configuraiton type run Spring boot application or Application configuration type to run application with standard Java main method.

0

Please sign in to leave a comment.