Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I prevent Eclipse from stepping into Java library code

Tags:

java

eclipse

How can I prevent Eclipse from stepping into Java library code when using Step Into? What I am used to in other IDEs (like IntelliJ) is that with Step Into you enter the methods defined by yourself or third party libraries but not the methods of the Java framework itself. Eclipse does that and it really slows down debugging especially if you have calls to your own methods and ones defined in the Java framework in one line. You have to constantly switch between Step Over, Step Into or Step Return if you already stepped in.

like image 652
urbaindepuce Avatar asked Aug 22 '15 09:08

urbaindepuce


1 Answers

You can configure the Eclipse Java debugger to not step into those bits of code by configuring a ‘Step Filter’.

  1. Go to Windows -> Preferences -> Java -> Debug -> Step Filtering.
  2. Check ‘Use Step Filters’.
  3. Check the appropriate options on the screen. You can add parts that are relevant to your own codebase.
  4. Click ‘Apply’.

More you can read about Eclipse Step Filter here

You can even create a filter for your project Package or Java class as well.

Another good link

enter image description here

like image 189
Subodh Joshi Avatar answered Sep 22 '22 20:09

Subodh Joshi