Eclipse Filters
Home Up

 

Home

Up

ourmission
theweb.gif (1103 bytes)
booksandbibles16
thenewsroom
governmentrm.gif (1147 bytes)
searchpage
tutorials
webtools
websecurity

What is the Web?

Privacy & Disclaimer
copyrights
notices
HOME

Visitors Since
Aug - 2004

Hit Counter

 

Eclipse Filters

My original information came from a blog out on the internet, after getting tired of falling into code, that I had no source for and that I was not interesting in debugging. Thank you Ray McVay for posting this, in a moment of quite contentment.

Preventing the Eclipse debugger from stepping into utility code is not as easy, as one might believe. And, it is interesting that, by default the java.lang.ClassLoad class is already selected.

When you are here, you can select the packages to keep from going into them.

Well, you would think that everything is just fine. But, I was debugging  some SQL with the jtds-1.1.1.jar, and I could not filter it out?

So, what is the mystery?

It is a little button on this panel.

You must click it to enable it, but not for the built-in defaults.

Well, it is Saturday morning. On with the original quest.

 

 

 

 

Preventing the Eclipse debugger from stepping into utility code

 

From: Chemi
Newsgroups: ibm.software.websphere.studio.application-site-developer

An interesting tip from: http://www.eclipsenews.com

When stepping through your code in the Eclipse debugger, it's very frustrating when you inadvertently step into utility code. Normally what happens in that situation is that the Java editor opens with an error telling you that Eclipse can't find the source. This can really mess up your debug session, so it's important to be able to keep the debugger out of utility code.

Eclipse has a preference setting called Step Filtering. You invoke it with Window => Preferences => Java => Debug => Step Filtering. The Step Filtering panel will have the following default list:

bulletcom.ibm.*
bulletcom.sun.*
bulletjava.*
bulletjavax.*
bulletorg.omg.*
bulletsun.*
bulletsunw.*
bulletjava.lang.ClassLoader

To disable stepping into a package's code, click its check box. You can click the Add Class or Add Packages button if you want to add a package or class to the list.

The last and most important part of this tech tip is that to enable step filtering, you need to toggle the Use Step Filters/Step Debug icon. That icon is at the top of the Debug view. It is a yellow arrow that goes right and then forks (visualizing a step into) down.

Thanks, Chemi!