Suppose you want to step through one of the built-in HttpModules in ASP.NET. This doesn’t work by traversing the callstack. There is another little “trick” to get this working:
- Go to Debug/New Breakpoint/Break at Function
- Enter the function name, e.g. FormsAuthenticationModule.OnEnter and select “C#”
- Ignore the error message
- Hit F5
Unfortunately you’d first have to use Reflector to find the function name before you can set a breakpoint. Could be easier.
Have fun!