How can I prevent Eclipse from switching to Java library code?

How can I prevent Eclipse from being included in Java library code when using Step Into? What I'm used to in other IDEs (like IntelliJ) is that with Step Into, you introduce methods defined by or by third-party libraries, but not by the Java structure itself. Eclipse does this and it really slows down debugging, especially if you have calls to your own methods and those defined in the Java structure on one line. You must constantly switch between Step Over, Step Into or Step Return if you are already logged in.

+4
source share
1 answer

You can configure the Java Eclipse debugger to not enter these bits of code by setting the "Step Filter".

  • Go to Windows → Settings → Java → Debugging → Filtering by Steps.
  • Check the box next to "Use step filters."
  • Check the relevant settings on the screen. You can add parts that are related to your own code base.
  • Click "Apply."

Read more about the Eclipse Step Filter here.

You can even create a filter for your Project or Java package.

Another good link

enter image description here

+7
source

All Articles