Stepping eclipse

1, set a breakpoint
placed inside a breakpoint in the program, which is required to place breakpoint double-click on the column to the left of the program. A breakpoint is where the automatic program execution to stop.

2, debugging
(1) Click the "Open Perspective" button, select Debug perspective, perspective debugging interface is opened, and then to set a breakpoint, the debug button press may debugger.
(2) or click the debug button, the insect looks like a button, and then will enter debug interface perspective. Premise you need to set a breakpoint in the program.
(3) or right-click the program, selecting debug as (debug mode) -> java application (Java application), you can debug the program. Premise you need to set a breakpoint in the program.

3, Debug shortcut
run java program debug mode
(F5) step through the program, the method enters encountered;
(F6) step through the program, the method encounters skipped;
(F7) step through the program, from current methods out;
(the F8) directly executes the program. Pause when a breakpoint is encountered;
Press F5 is equivalent to debug a drill-like peeling onions, will enter the interior of each method;
press F6 in the current function is a step by step debug, ignoring the deep-seated operation;
press F7 is, if the current into an internal method, all jump to the end of the code at the method;
press F8 if after that there is a breakpoint, then run to the next breakpoint, or run your program;
the other, when debug, there will be a lot of useful information is displayed in the debug box, such as stack information, needs its own practice; there will be when the current property value of the variable in the program interface, mouse over variables.

4, changing the value of the variable
right click variables in the variable window, the pop-up menu, select [change value], the pop-up screen modification.
After changing its value, press the ok button; time on the value of the variable to the modified value.

5, the results check the code segment
when the program runs, would like to see the results of a certain program is running correctly, or view the value of a variable:
Select one or piece of code, right-click on the pop-up menu, select Watch (see Creating expressions) item, this time, the results of the code displayed in the expressions (expression) window.
Or select a piece of code, right-click on the pop-up menu, select Inspect (check) items, you can display the value of the expression directly.
1, set a breakpoint
placed inside a breakpoint in the program, which is required to place breakpoint double-click on the column to the left of the program. A breakpoint is where the automatic program execution to stop.

2, debugging
(1) Click the "Open Perspective" button, select Debug perspective, perspective debugging interface is opened, and then to set a breakpoint, the debug button press may debugger.
(2) or click the debug button, the insect looks like a button, and then will enter debug interface perspective. Premise you need to set a breakpoint in the program.
(3) or right-click the program, selecting debug as (debug mode) -> java application (Java application), you can debug the program. Premise you need to set a breakpoint in the program.

3, Debug shortcut
run java program debug mode
(F5) step through the program, the method enters encountered;
(F6) step through the program, the method encounters skipped;
(F7) step through the program, from current methods out;
(the F8) directly executes the program. Pause when a breakpoint is encountered;
Press F5 is equivalent to debug a drill-like peeling onions, will enter the interior of each method;
press F6 in the current function is a step by step debug, ignoring the deep-seated operation;
press F7 is, if the current into an internal method, all jump to the end of the code at the method;
press F8 if after that there is a breakpoint, then run to the next breakpoint, or run your program;
the other, when debug, there will be a lot of useful information is displayed in the debug box, such as stack information, needs its own practice; there will be when the current property value of the variable in the program interface, mouse over variables.

4, changing the value of the variable
right click variables in the variable window, the pop-up menu, select [change value], the pop-up screen modification.
After changing its value, press the ok button; time on the value of the variable to the modified value.

5, the results check the code segment
when the program runs, would like to see the results of a certain program is running correctly, or view the value of a variable:
Select one or piece of code, right-click on the pop-up menu, select Watch (see Creating expressions) item, this time, the results of the code displayed in the expressions (expression) window.
Or select a piece of code, right-click on the pop-up menu, select Inspect (check) items, you can display the value of the expression directly.

Guess you like

Origin www.cnblogs.com/walxt/p/12174468.html