I found this question, but what I want to know is different - does the output from Console.WriteLine go anywhere when debugging? I know that for it to go to the output windo
As already commented on OP's question:
No need to write additional code
In Visual Studio uppermost menu choose
Debug > Windows > Output
The output windows will only be visible in debug mode and it will show all e.g.
Console.WriteLine("Debug MyVariable: " + MyVariable)
when you get to them.
Set a breakpoint before (click the different-coloured empty area before the line number at the start of a chosen line), debug (F5), and then step through code line by line (F11) until you do.