Original address: http://blog.csdn.net/fupeng1114/article/details/75481902012-05-08 23:42
1. First set a breakpoint in a Java file, direct point two,
When the program goes to the breakpoint, it goes to the debug view.
2.f5 and F6 keys are single-step debugging, F5 is step into, that is, into the bank code execution, F6 is stepover, that is, the execution of our code, jump to the next line,
3.f7 is the bounce function.
4.f8 is executed to the last.
1.Step into (also F5) jump
2.Step over (also F6) skip
3.StepReturn (also F7) executes the current method, and then return jumps out of this method
4.stepFilter Progressive filtering continues until an unfiltered position or breakpoint is encountered (set filter:window-preferences-java-debug-stepfiltering)
5.resume start debug again and run until you encounter breakpoint
6.hit count sets the number of executions appropriate for the for loop in the program (set breakpoint view-right-Hitcount)
7.inspect check operation. Executes an expression that displays the execution value
8.watch real-time monitoring of variable changes
9. The breakpoint (breakpoints) We often refer to is the line breakpoints, in addition to linebreakpoints, there are other types of breakpoints: field (watchpoint) breakpoint, Methodbreakpoint,exception Breakpoint.
10.fieldbreakpoint also called watchpoint (monitoring point) suspend when member variable is read or modified
11. Add Methodbreakpoint Suspend (run-methodbreakpoint) when entering/leaving this method
12. Add exception breakpoint Catch the Execption when the suspension (to be continued ...)
Breakpoint Properties:
1.hit count execution number of times after suspend for loop
2.enablecondition meets your input criteria (for ture\ changes) on hold
3.suspendthread Multi-threaded when this thread is suspended
4.suspend VM suspend Virtual machine
Variables in the 13.variables view can change the value of the variable, and the variables view selects the variable right-click--changevalue. Once for quick commissioning.
The 14.debug process modifies some code after the--〉save&build-->resume--> is re-suspended on the breakpoint