Does anyone know how to step into the target method of a class that is being managed by (in my case) Spring’s AOP mechanism?
If I am stepping through my code and get to e.g. orderDao.FindOrder(orderId), and try and step into that method, I get to the proxy class itself, rather than my OrderDAO.
I understand why that would happen of course. However I’m sure I was able to just step into my method directly at some point (i.e. the debugger is bypassing all the AOP stuff and just going directly to my code.
But it’s stopped working, and I have no idea what I could have done to stop it from doing this. A setting in VisualStudio (2010) somewhere perhaps?
I’ve unchecked and then checked the ‘Just my code’ option in the debugger to see if that helps, but get the same results.
Thanks
I answered this in the comments, but just so it’s obvious if someone else is looking for a solution…
You can tell VS only to include your own DLLs when debugging in Tools, Options, Debugging, Symbols. Then set up an include/exclude filter by adding each of your DLLs in the ‘specified modules’ section.
Also, in Tools, Options, Debugging, there is a checkbox called “Just my code”. That’s probably worth toggling (not sure) but I think it’s enabled by default so you might not need to bother with this.