If you want to output extra infromation in your code to see what is going on in problem situations and you only want to include it in debug compilations and not in Release version you can add a “Debug” Conditional attribute to a function and use that function to output data into your system output. There are many ways but this is a simple and straightforward way to do it:
private void DebugInfo(String info)
Response.Write(“</br>” + info);
The function and it’s content will be left out in Release compilation.