diralik
diralik

Reputation: 7236

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

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)

Upvotes: 4

Views: 668

Answers (1)

y.bedrov
y.bedrov

Reputation: 6024

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

Upvotes: 4

Related Questions