Debugging in monogame

If you like, you can use Console.WriteLine like you would in a normal C# console application, assuming you're developing a desktop application. There are a couple of steps.

  1. Open the Properties for your MonoGame project
  2. Select the Application tab
  3. Change the Output Type to Console Application.

Your application should run as normal, only a console window should appear when you start the game.

Alternatively, you can use Debug.WriteLine, which will write to the output window in Visual Studio (it should appear when you start debugging your game).


I found it!

Using Debug.WriteLine writes to the debugger, which is in the output window in Visual Studio(by default at the bottom). It appears when you close the program(press F5 to start, Esc to close) by default in an OpenGL project.