Time for action – setting up step filtering
Step filters allow for uninteresting packages and classes to be ignored during step debugging.
- Run the target Eclipse instance in debug mode.
- Ensure that a breakpoint is set at the start of the
execute
method of theSampleHandler
class. - Click on the hello world icon, and the debugger should open at the first line, as before.
- Click on Step Into five or six times. At each point, the code will jump to the next method in the expression, first through various methods in
HandlerUtil
and then intoExecutionEvent
. - Click on resume to continue.
- Open Preferences and then navigate to Java | Debug | Step Filtering
Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.