To get your C#.Net script to output to the console, simply add:
System.Diagnostics.Debug.WriteLine("Hello!");
Do the Debug > Attach to Process > aspnet_wp.exe and visit the page.
Here is a screenshot of the results:
This is where I put all the amazing things that I discover!
3 comments:
Wow, this is fantastic. I had no idea that I could output text to the debug / output / immediate window. This really helps when trying to debug AJAX applications that don't actually debug properly in ASP.Net anyway.
Thanks for this.
Interesting to know.
I wish VC++ had this >.>
Post a Comment