2 Minutes To Code (β Version)

Debugging with Eclipse - 2 minute tutorial

How to use Step filtering to debug only relevant java packages

As seen earlier, after a breakpoint is hit, you can use step-in, step-out and step-over to make the jvm execute code one line at a time.

While stepping-in, debugger will even take you in the source code of java.lang.Object, java.lang.String classes or source code of third party frameworks like log4j. You can avoid this by using step-filtering where you specify the classes and packages that you do not want to go into.

To configure these classes/packages, right click on any item in the Debug view in the upper-left pane, and then click Edit Step Filters.

In the window that pops up, tick the check-box of classes/packages that you want to filter out or add new classes/packages. After this, hit Apply > OK and you are done.