The debug debugs in Eclipse are described here:
First, right-click the project select Debug AS-debug on server or click the small insect icon in the server panel to start debug mode.
Run the Web project, go to the place where you need to debug, add a breakpoint in the code that is about to run before you perform the page operation, and then continue with the page operation, when the current run to the breakpoint, Eclipse automatically pops up into debug mode, then you can use debug mode to observe.
You can view the current variable values in the variables variable view.
Several shortcut key operations:
F5:step into: Jumps into the currently executing method (inside the current line method)
F6:step over: Skips the line to continue execution (the current page code goes down one line, not into the method when the method is encountered)
F7:step Return: Stepping Out of a method (jumping out of an incoming method)
F8:resume: Run all through, restore from debug state (jump directly from the current breakpoint to the next breakpoint, instead of a line-by-line to track debugging like F6)
Ctrl + R:run To line: Run to the currently selected row
Generally, we use F6 and F8 more.
In eclipse, how do I debug the Java Web?