I am trying to debug my application that calls some stored procedure.
I don’t have any problem with debugging the procedures.
The problem is, when I am debugging, the default command timeout for connections is 30 seconds, so when I am debugging, the execution of that thread will stop and is throw one exception that indicates “Timeout”.
I need to increase the command timeout or exists some way, that ‘knows’ that I am debugging and it extends the timeout automatically?
Apreciate your help,
thanks
You can use
Or you can use pre-processor directives just for debugging purpose see here http://msdn.microsoft.com/en-us/library/ed8yd1ha(v=vs.71).aspx and here Pre-Processor directives in C# are some details.