IDEA
Intellij SpringBoot DevTools Setup
- Add
spring-boot-devtoolsin pom.xml Settings-Build,Execution,Deployment-Compiler, enableBuild project automaticallySettings-Advanced Settings, enableAllow auto-make to start even if developed application is currently runningDisable cacheon browser
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>spring.devtools.restart.enabled=true
spring.devtools.restart.additional-paths=src/main/java
spring.devtools.restart.exclude=WEB-INF/**Debug
Line Breakpoint (red circle)
- Condition: must put a expression returns a boolean
- Stream:
Trace Current Stream Chain - Force Return: Debug Window -> Debugger -> Function Name(right click) ->
Force Return - Throw Exception: same as above
- Multi Thread: Right click break point -> Enable
SuspendwithThread
Method Breakpoint (red diamond)
- Most of time use in Java interface
Field Watchpoint (red eye)
Exception Breakpoint (red thunder)
- Manually add
Java Exception Breakpoints
ideaVim
diw
di"
ciw
ci"
cit // delete within tag
dt> // delete to >
ct> // delete to >