Eclipse debugging / step into method skipping AOP wiring
Asked Answered
T

2

14

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?

Tenaculum answered 15/10, 2009 at 21:16 Comment(0)
L
19

Try Windows>Preferences>Java>Debug>Step Filtering. Check "Use Step Filters" and simply add the packages/classes you wouldn't go to in to the list. See Eclipse's help for more details.

Linares answered 15/10, 2009 at 21:21 Comment(1)
I am using Kepler and stepping into a proxied interface steps into all sorts of other non-AOP classes (e.g. org.springframework.util.ReflectionUtils). After ten rounds of adding another class/package I am given up and asking for advice here...Tallula
G
14

here my filter for make it work:

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

Galloping answered 10/11, 2010 at 9:47 Comment(1)
Anyone searching for where to put these information in Intellij, Check this How to Open Step Filters in IntellijTense

© 2022 - 2024 — McMap. All rights reserved.