开发者

Eclipse debugging / step into method skipping AOP wiring

I'm debugging a SpringSource application in Eclipse 3.5 that makes heavy use of AOP to wire up the components.

If I want to step into a method of a class wired with AOP, I first have to step through around 20 layers of SpringSource wiring methods开发者_运维知识库 before reaching my own source code again.

Is there a way to configure Eclipse to skip the layers to which it has no source and step directly to my method?


Try Windows>Preferences>Java>Debug>Step Filtering. Check "Use Step Filters" and simply add the packages/classes you wouldn't to go in to the list. See http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/views/debug/ref-usestepfilters.htm for more details.


here my filter for make it work:

package: java.lang.*
package: java.util.*
package: net.sf.cglib.*
package: org.springframework.aop.*

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜