Gradle daemon not reused when running in debug mode (in IntelliJ IDEA)

599 Views Asked by At

I created new Java project in IntelliJ IDEA with gradle (and added one class which prints hello world). Then I try to run project both in debug and non-debug modes.

When I first time run in non-debug mode, IntelliJ prints that new daemon was started, and on subsequent launches this daemon is reused.

But when I run in debug mode, IntelliJ prints that new daemon was started each time (both first one, and subsequent ones).

How can I make IntelliJ to reuse gradle daemon when running in debug mode?

(I have gradle 5.2.1 and IntelliJ 2019.3.3)

1

There are 1 best solutions below

2
On BEST ANSWER

You may disable "Enable Gradle script debugging" option in run configuration. Related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-228584