‘F9: restore program F8: skip to next F7: Enter code Alt+ Shift+ F7: Force code shift+ F8: skip to next breakpoint Alt+F8: debug when check check value Atl+F9: Run to cursor Alt+F10: CTRL + Shift +F9: Debug Run Java classes CTRL + Shift +F10: Run Java classes properly
1. Take a Web project as an example. Click the button in the picture to start the Web project.
image
2. Set breakpoints
image
3. Use Postman to send HTTP requests
image
4. After the request is sent, it will automatically jump to the breakpoint, and the data will be displayed before the breakpoint
image
5. Press F8 to go to the next step in Debug mode. If the current line breakpoint is a method, skip to the next execution statement.
image
6. Press F7 to go to the next step in Debug mode. If the current line breakpoint is a method, go to the current method body, if the method body has methods, go to the embedded method body.
image
7. Continue pressing F7 to skip to the StopWatch() constructor.
image
8. To jump out of this method, press Shift+F8 to jump back in Debug mode.
image
9. Press F8 to proceed to the next statement.
image
10. When we reach the second breakpoint, if we want to go directly to the third breakpoint, press F9.
image
Add: Alt+F8 You can select an object in the Debug state and view the debugging result in the input calculation expression debugging box.
The first red box is the parameter I entered, and the second box is the result I executed.
image