Game Development Community

Debug Statements

by James Young · in Torque X 2D · 12/05/2007 (5:51 am) · 3 replies

Hi there,

I was wondering if anyone could tell me the best way to display debug statements while the game is running. Is there a command that will display some output in the Visual Express IO window?

Cheers

Jim

#1
12/05/2007 (7:10 am)
This will write to the output window:

Console.WriteLine("omgooses");
#2
12/05/2007 (9:24 am)
Thanks, that's great!
#3
12/05/2007 (9:59 am)
You can also add at the top of your code:

using System.Diagnostics;

Then you can use the Debug.Writeline(). When you compile for release, it wont include any of those lines of code, they only exist in developmental builds.