Debugging in IntelliJ (Rebooting Modified Classes)

I recently switched from eclipse to IntelliJ. The Eclipse debugging tool is used to instantly restart the application while saving the class. IntelliJ reloads the changed classes for more than 10 seconds, which may be a bit, but it is annoying because I use it so often.

How to force IntelliJ to reload changed classes faster?

+10
java debugging eclipse intellij-idea hotswap
source share
2 answers

Reload modified classes

  1. Perform one of the following actions:

    • From the main menu, select Run | Reload the changed classes.
    • From the main menu, select Build | Compile β€œclass_name” to recompile the changed class during debugging.
  2. In the Reboot Modified Classes dialog box, confirm the reboot. Results are displayed in the Messages window.

See this link for a detailed explanation.

+5
source share

InteliJ does not recompile code after changes to Java files and rebuilds

  1. Project> Settings> Build, Run, Deploy> Compiler> check the box "automatically build project"

  2. Ctrl + Shift + A find "registry", according to your requirements, check the following:

    compiler.automake.allow.when.app.running compiler.automake.trigger.delay=500 
  3. Add devtool to pom.xml :

     <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> 
  4. Build if any gap is found during construction, saying that the jar is not on its way to class. Just remove the corrupted jar and rebuild the angain project after syncing with maven libb

0
source share

All Articles