ASP.NET Internals Spelunking II

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!

This entry was posted in ASP.NET. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s