Debugging and Deployment
# Errors
- Compile-time errors
- Easy to detect and fix
- Run-time errors
- Tricky
- Use debugger
# IntelliJ Debugging
Break pointssuspend thread executionJava will execute up to the
break pointThe line will not be executed
- Click
Step Overto execute the code line by line - Click
Step Into go inside the calling method - Variables' value are shown in the
Variablespanel- Click
Addto add new variables to watch their value changes
- Click
- Methods are listed in the
Frames(orCall Stack) panel in reverse order

上次更新: 2021/12/31, 15:34:56