vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Friday, December 2, 2011

Apply Breakpoint use code in asp.net or stop Debugging

hi
Some time ,at some instance we need to check the code by applying breakpoint.Usually we set the breakpoint pointing red mark int the code...

In this article you will learn about to apply breakpoint using code....By writing this code we can stop  debugging at particular execution....I hope sometimes we need to stop using code....

For an example running any for loop 1000 times ,so we need to stop at loop 600 we can write this to stop the break point at at the loop[ 500 th times might be sometime it will helpful to stop the debugging..


if (i=="500") 
{


System.Diagnostics.Debugger.Break();  


}
else
{
....
}

its very quite interesting to learn very small things..i hope u enjoy.



0 comments:

Post a Comment