I'm new to Visual Studio C# and I've created my first DLL. I'm referencing this DLL within a web application. In my code throughout numerous classes within the DLL and even in the controller classes of my web application, I make use of Console.WriteLine(...) to help with troubleshooting. I fully expected those messages to be output to the console at runtime, but they aren't showing up. For example here is some code from a class that is attempting to access a MySQL database, and before I execute the query, I attempt to write the query string to the console:
MySqlCommand cmd = null;
MySqlDataReader rdr = null;
MySqlCommand cmd2 = null;
try{
Console.WriteLine("query: " + query.ToString());
cmd = new MySqlCommand(query.ToString(), conn);
rdr = cmd.ExecuteReader();
...
}
In Visual Studio, during project execution time, I've looked at the Immediate Window, the Output, Locals, Call Stack windows.
Where are my writeline messages?