Console Debugging

Started by smoq2, February 02, 2015, 05:35:42 PM

Previous topic - Next topic

smoq2

Is there a way to get your code to print something in the console? Console.WriteLine (string); doesn't seem to work.

skullywag

Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

smoq2

Quote from: skullywag on February 02, 2015, 05:40:48 PM
log.error();

Are you sure? Xamarin Studio doesn't let me compile with that.

skullywag

Log.Error("some text" . variableName);

Should work perfectly
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Rikiki

You can also use:

bool myBoolean = true;
Log.Message("Does not open the console = " + myBoolean.ToString());

or

Log.Warning("Does not open the console but text is written in yellow);


Having walls of red text is quite aggressive for my poor eyes. 8)

smoq2

Yep, works fine. Didn't know you have to use capital letters. Thanks for the help.