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

Viewed 451

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 Answers
Related