Eclipse debugging / step into method skipping AOP wiring

ε祈祈猫儿з 提交于 2019-11-29 17:37:03

问题


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?


回答1:


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.




回答2:


here my filter for make it work:

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



来源:https://stackoverflow.com/questions/1575129/eclipse-debugging-step-into-method-skipping-aop-wiring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!