Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 957
Eric J. Avatar asked Oct 15 '09 21:10

Eric J.


People also ask

How do I skip a loop while debugging?

You can add a breakpoint after the loop and click F8 (resume). The debugger will stop on the next found breakpoint, e.g. you will have skipped the loop(s).

What to do if debugger is not working in Eclipse?

The solution was to enable it again, start a debug session, the breakpoint is hit and shown in the UI, then disable again the option. There is also another simpler way that will make Eclipse show the debugging highlight at the breakpoint or rather refresh the debugging UI to work as it should.

What is step into and step over in debugging?

Ans: Step Into: Step Into is used for debugging the test steps line by line. When the procedure gets called, Step Into enables you to get inside the procedure and debugs the procedure steps line by line. Step Over: Step Over will enable, only after the debugging is started with Step Into / Run From Step / Run to Step.


1 Answers

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.

like image 115
Olivier Avatar answered Oct 12 '22 13:10

Olivier