How to output debug information to the Visual Studio Output window?
Hello everyone. I'm a beginner C# developer, and I encountered a problem while debugging an application. I need to output intermediate variable values and program execution progress messages to understand what's happening in the code. I'm using Visual Studio 2019.
The problem is that I don't know how to properly send messages to the Output window. I usually use `Console.WriteLine()`, but this outputs text to the console window, while I need to see messages specifically in the Output window, where debug messages from the studio itself are displayed (for example, "The thread ... has exited with code ...").
Here's an example of my code:
```csharp
using System;
class Program
{
static void Main()
{
int x = 10;
int y = 0;
Console.WriteLine("Starting division"); // This outputs
```