Eclipse debugging features

Through this blog, I recorded about the process of learning and using the Eclipse debug features.

 

      The main meaning of this code is to enter a b, Cycles b times, enter a number in each cycle, if the input is an odd number yourlove ++, if the input is an even number mylove ++, if the input is an odd number yourlove ++, and finally if mylove = yourlove and greater than 5, the output will be love, otherwise, output break (very realistic). The first part of the code, and paste the results.

 

 

 

 

 Next, enter the important debug link.

1. The first step is now next to the code to debug Double-click a breakpoint. (For example, my code debug for circulation)

 

 

 2. Click RUN in the Debug or shortcut keys F11 to start debugging.

First introduce the use of each button.

 

 The first one: go to the next at a breakpoint, if not a complete run debug process

Third: Forced stop the current debug

Fifth: to enter the internal method

Sixth: Go to next line of code

Seventh: When out of the current method, if the current went to the internal method, directly after executing the current method calls the tune at the back

 

Then start debug.

 

 

 

 

3. Data before entering the breakpoint to be input, the input value of b (Example 10) In my case, the right-hand column shows the value of the variable portion of the case.

4. The number of lines left Debug window each row represents a method call, click on the first few lines, represents the place where the current debug.

 

 

5. In the loop, after each data entry is displayed in the changed variable Variables right window, and yellow standard, as shown in FIG.

 

 6. this procedure, you can complete a simple debug.

 

Guess you like

Origin www.cnblogs.com/zhhhb/p/11498035.html