When you're done debugging please PLEASE don't get rid of your debugging code. It might look a little uglier, but for the most part it's going to be a good thing to leave it in. You might kludge it with a "if bDebugging Then Console.Writeline(strDebugInfo)" but keep it in there.