How to use Console.WriteLine in ASP.Net MVC 3

 Debug.WriteLine("My debug string here");

should do the trick. Check that your application is in debug not release:

debug button

If nothing is coming out on your debug window, right click your project. Select properties. On the left of the opened tab, click Build. There is a check-box “Define DEBUG constant”, make sure it is clicked.

enter image description here

You most likely know how to set the debug information to show in the output window (Debug->Windows->Output):

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)