Debug statements are always useful during development. But include them in production code - particularly in code that runs client-side - and you run the risk of inadvertently exposing sensitive information.
private void DoSomething()
{
// ...
Console.WriteLine("so far, so good..."); // Noncompliant
// ...
}
The following are ignored by this rule:
[Conditional ("DEBUG")] #if DEBUG) This rule is deprecated; use {rule:csharpsquid:S106} instead.