I would like to log some variables in my ASP MVC3 application while I debug. I tried some different things such as:
Debug.Log(topTitle + " " + subTitle);
This doesn’t seem to work. How can I write to the console of VS2010 from my C# code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To write to Console Window in Visual studio use:
Below is the screenshot of its working: