Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 916
diralik Avatar asked Oct 22 '25 05:10

diralik


1 Answers

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

like image 140
y.bedrov Avatar answered Oct 23 '25 19:10

y.bedrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!