Eclipse Debug Tips
Do you think your Eclipse debug skills have been learned? can be used skillfully, the skills described in the following articles are worth your study
1:5 Tips for debugging Java Code in Eclipse
http://www.cavdar.net/2008/09/13/5-tips-for-debugging-java-code-in-eclipse/
2:using the Debugger
Http://eclipsetutorial.sourceforge.net/debuggerlessons.html
3:debugging with the Eclipse Platform
http://www.ibm.com/developerworks/library/os-ecbug/
4:java Debugging with Eclipse-tutorial
Http://www.vogella.de/articles/EclipseDebugging/article.html
Turn from: http://dikar.iteye.com/blog/1014377
The translation section is as follows:
Logical Structure
The logical structure is used to show values stored by a map or other collection class. It directly shows the "logic" section without having to show the other internal variables in detail. Use it by clicking on the button shown in the image.
Figure 1 is not enabling the logical structure, figure 2 is enabled.
Single Step Filtration
It allows us to skip some of the code and jump directly to the code we need to debug. In the Window > PreferencesJava > Debug > Step filtering Settings filter, you can select which packages and classes you want to filter out. Also make sure that you have a single step filter enabled in the Debug view, as shown in the following figure. This filtering function is used when you use single step debugging.
Jump to Hardwood
At debug time, Eclipse can skip directly to any of the specified frames in the call stack and let the JVM run again here. This allows you to rerun part of your code.
note that variables that have been modified are not reset, and they retain the values at that time.
How to use: Select a frame in the call stack, click on the button "Jump to Hardwood"
Debug Pivot Chart
Http://www.cnblogs.com/Jamesliang/archive/2010/01/09/1643188.html
When you click the Debug button, Eclipse prompts you to enter the debug perspective. In the upper Right expressions window click the right mouse button in the pop-up menu to select Add Watch Expression or click the following image button will appear, add an expression window. You can enter an expression you want to monitor.
Display window
In the Add Expression window above, although you can add an expression, but add an expression he does not have the smart tip feature. You can open the Display view by clicking the Windows->show view–>display menu. In the view again when you enter an expression, there will be a smart prompt function.
Conditional Breakpoint
Sometimes we need a breakpoint to meet a certain condition before entering the breakpoint. At this point we can click on the breakpoint mark on the right mouse button on the pop-up menu to select the Breakpoint Properties menu, in the Breakpoint Properties dialog box to Enable Condition check box, enter the required conditions.
Exception Breakpoint
When we set a breakpoint on an exception, we can select the Breakpoints window on the Debug Pivot view and click the ADD Java Exception breakpoint button in the upper-right corner, where we can enter the exception type we need to debug.