SharpCrafters Forum – Can we step in an aspect ?

SharpCrafters Support Forum

        


Can we step in an aspect ? Expand / Collapse
Author
Message
Posted 2/11/2010 10:14:10 AM


Pierre-Emmanuel Dautreppe

Community Member
Hello Gaël,

I have a question about debugging aspected code.
Let's imagine that I have an OnMethodInvocationAspect defined and a method aspected with it. In pseudo-code, something like :

class MyAspect : OnMethodInvocationAspect { }
class Program
{
 main()
 {
   DoWork();
 }
 
 [MyAspect]
 void DoWork()
}


What I expect is when I debug the "main" function and ask to StepIn the "DoWork" method, I expect either to step in in my aspect, or directly in the DoWork method.

Currently when I ask to step in, or I won't step in, or I will get the error "There is no source code available for the current location". To really step in, I need to explicitely put a breakpoint into my DoWork's code.

Is this the normal behaviour or is there a way to step in while debugging ?
Thanks,
Pierre
Post #2642
« Prev Topic | Next Topic »


All times are GMT +1:00, Time now is 11:46am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.068. 5 queries. Compression Disabled.