I am debugging an IIS site and I have one conditional breakpoint. There is a loop of about 1000 iterations and the condition of the breakpoint is quite cheap on the cpu (string comparison). It is taking really long (minutes) to complete the debug, is there some kind of way to speed this up?
And would this be faster if I debugged on the development server or IIS express?
Using conditional breakpoints can drastically reduce performance.
I did some test on code that took +- 500 ms to execute. With a conditional breakpoint it took minutes to complete.
The solution to this is to use manually invoke the debugger.
There is no performance penalty by using this approach, the only slowdown will be the comparison between the variable and the value.