I
wanted to debug a piece of code which was not working in my MVC site
.To write debug statements onto output window,Simply add the following
code
Later start the website using Debug mode - and check for the statements in the Output tab in Visual Studio
This is what I do for a lot of MVC 3,4,5 applications and it works perfectly.
System.Diagnostics.Debug.WriteLine("Test statement");
Later start the website using Debug mode - and check for the statements in the Output tab in Visual Studio
This is what I do for a lot of MVC 3,4,5 applications and it works perfectly.
No comments:
Post a Comment