Sometimes we don’t want to go stepping inside methods while debugging though certain break points. Suppose we have more than one method in a page. While debugging we don’t want to step into a particular method, in other words, we want to skip that method. So what do we do ?
We can use the “DebuggerHidden” attribute to meet our above requirements. All we have to do is add this attribute to the method we want to skip, Visual Studio Debugger automatically detects that the particular method is to be ignored.
This is demonstrated in the following code snippet, the particular method i.e.SecondMethod() is skipped during debugging