Академический Документы
Профессиональный Документы
Культура Документы
Create a breakpoint where you want to start inspecting the state of your program while it executes, line by line.
To set a breakpoint: Double click the gutter to the immediate left of the targeted line of source code. The Breakpoint
tells the debugger to pause at this point. To eliminate a breakpoint: Double click the breakpoint.
To initially START a debug session from within the Java Perspective: Run Debug As Java Application Editors
There appears the dialogue box "Confirm Perspective Switch" Check "Remember my decision" Yes. Eclipse
switches to the Debug perspective.
Thereafter simply press <F11>.
In any "perspective", keep open only those frames that contain information that you will use.
When initially using the Debug Perspective, open the Edit, Breakpoints, Variables, Console and Tasks frames. Close all other
frames. Rearrange and resize the remaining open frames for optimal viewing.
Place Edit frames vertically on the left separated by tabs. Place the Variables and Breakpoints frames vertically on the right
separated by tabs. Place the Console and Tasks frames horizontally on the bottom separated by tabs.
All Eclipse action keys are documented in the Eclipse Run Menu Actions documentation. Begin by using
the following debug actions when generating and debugging code.
Function
Button
Hot Keys
Debug
Resume
Terminate
Purpose
Step Into
<F5>
Step Over
<F6>
Step Return
<F7>
Debug Last
<F11>
Run Clean
<Ctrl><F11>