Debugging in monogame

James Gould picture James Gould · Nov 13, 2013 · Viewed 11k times · Source

How do you print or output text in Monogame?

I googled how to display text in monogame and was led to this: Debug.WriteLine

Which says: "By default, the output is written to an instance of DefaultTraceListener."(and that page just confused me more).

So, if someone could direct me to a method of displaying DefaultTraceListener, or another method of outputting text in monogame, I would appreciate it.

Answer

James Gould picture James Gould · Nov 13, 2013

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.