Eclipse debugging shortcut

Source: Internet
Author: User

1. Step (Also F5) Jump
2. Step over (Also F6) skip
3. Step return (Also F7) after executing the current method, return jumps out of this method
4. Step FilterStep-by-step filtering continues until unfiltered locations or breakpoints are encountered (set filter: window-preferences-Java-debug-step filtering)
5. ResumeRun debug again until the breakpoint
6. hit countSet the appropriate number of executionsProgramFor Loop ( Set Breakpoint
View-right-click hit count)
7. InspectCheck the operation. Execute an expression to display the execution Value
8. Watch monitors variable changes in real time

9. we often say that the breakpoint refers to line breakpoints . In addition to line breakpoints, there are other breakpoint types: field (watchpoint) breakpoint, method breakpoint, predictionbreakpoint .
10. field breakpoint is also called watchpoint. It is temporarily suspended when the member variables are read or modified.
11. add method breakpoint to enter/exit this method temporarily suspended (run-method breakpoint)
12. add exception breakpoint to catch execption temporarily (To be continued ...)
resumable attributes:
1.hit count indicates the number of times it is executed before it is used for loop.
2. if enable condition meets your input conditions (true or changed), it will be suspended.
3. this thread is temporarily suspended when suspend thread is multithreading
4. suspend VM mounting VM

13. variables in the variables view can change the variable value. In the variables view, right-click the variable and choose change value. One time for quick debugging.
14. After some code is modified during the debug process --> Save & build --> resume from the breakpoint

The most common monitoring:

CTRL + Shift + B (Set breakpoint)-> debug-> F5 (step into)-> double-click to select the object I want to monitor-> Watch (Monitoring)

Or select a line with a breakpoint expression, and then inspect


http://blog.csdn.net/abcjennifer/article/details/5479431

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.