tags:

views:

246

answers:

4

I need to debug an asp.net website following a timeout, i.e. via a breakpoint placed in the .aspx page that is specified as the loginURL setting in forms authentication config.

However, I understand that when debug="true" the site will not timeout (link text)

So how can I debug timeout scenarios?

Thanks.

A: 

I guess you are interested in finding out which part of the code is slow enough to cause the request to time out. If you step through it line-by-line in debug mode, you should be able to identify which line is causing the problem, even though the 'timeout' exception will not get triggered.

codeulike
A: 

If time-outs are the problem, why not use the standard trace functionality in ASP.NET? Using the trace information enables you to determine where the most time is spent. This may help to identify the bottleneck.

See here for an example of tracing in ASP.NET.

Sardaukar
A: 

Thanks for the replies above, although rather than identifying what is causing the timeout, I need to actually cause a timeout and trace through code following the timeout.

A problem has been reported whereby following a timeout and logging back in to the site, some strange behaviour has been observed which I am trying to identify.

A: 
codeulike