1. "Ctrl+shift+b": Sets a breakpoint at the current line or cancels the set breakpoint.
3. "Ctrl+f11": Run the last executed program.
4. "F5": Trace into the method, when the program executes to a method, you can press the "F5" key to trace to the method.
5. "F6": Step Into the program.
6. "F7": Executes the method, returning to the next statement that called this method.
7. "F8": Continue execution to the next breakpoint or end of the program.
public class Solution {
/**
* @param args */public
static void Main (string[] args) {
//TODO Auto-gen erated Method Stub
Solution SS = new Solution ();
Ss.adddate (10);//Break Point —————————————— (1)
System.out.println ("3"); ——————————————— (2)
} public
int adddate (int date) {
System.out.println ("1"); ———————————————— (3)
int dat;
DAT = date;
System.out.println ("2"); ———————————————— (4)
return dat;
}
}
Case one: at (1), after the break point, press F5, then will jump (3) into the method of println inside, what class things case two: at (1), after the break point, press F6, then will jump directly to (2), in the console can see the input content Note If in case one, press F7, then you will jump out of this method F8 is the end of debugging, in the press F11, the time to start again. F5: See the hole on the naughty Child, F6: is a glasses spent the old man, will only step-by-step, just look at the front F7: is a red wolf, she can jump out of the way. F8: But that's the execution to the end.