# Wednesday, December 15, 2004
« Tip of the Day: The Importance of Defrag... | Main | Tip of the day - Javascript - Getting th... »

Do you have a routine which you know works, and you don't want to have to step into when you're debugging? Granted, you could you the hotkeys to do it, but why bother? The System.Diagnostics namespace provides some neat functionality for helping you in your debugging process. Here's some examples:

//This attribute prevents the debugger from entering, as well as no breakpoints within

<System.Diagnostics.DebuggerStepThrough()>

private string MyRoutine()

{

//Don't step through this

}

I am actually not sure what the difference between that and the DebuggerHidden() attribute is though. The description in the help is the same. Anyone know?

Tuesday, January 11, 2005 8:02:33 PM (GMT Standard Time, UTC+00:00)
I believe the difference is that DebuggerStopThrough() works on methods, whereas DebuggerHidden() works on properties. Example:

[System.Diagnostics.DebuggerHidden()]
public string Name {
get {return "Bob"; }
}

[System.Diagnostics.DebuggerStepThrough()]
public string GetName() {
return "Bob";
}

Seems to work for me. Try swapping them and it won't compile.
Wednesday, March 02, 2005 11:18:02 AM (GMT Standard Time, UTC+00:00)
Someone from Microsoft answered the same question here:

http://discuss.develop.com/archives/wa.exe?A2=ind0108b&L=dotnet&T=0&F=&S=&P=24829
Dag
Thursday, August 04, 2005 3:28:50 PM (GMT Daylight Time, UTC+01:00)
You may find it interesting to take a look at the sites about casino on net http://casino-on-net.screwy-casino.com/
online casinos http://www.screwy-casino.com/
online casino gambling http://online-casino-gambling.screwy-casino.com/
slot machines http://slot-machines.screwy-casino.com/
roulette http://roulette.screwy-casino.com/
internet casino http://internet-casino.screwy-casino.com/
casino gambling http://casino-gambling.screwy-casino.com/
casino online http://casino-online.screwy-casino.com/
casino games http://casino-games.screwy-casino.com/
online casino http://online-casino.screwy-casino.com/
.
Thursday, May 31, 2007 6:55:50 PM (GMT Daylight Time, UTC+01:00)
I see this now.
Comments are closed.