Ludeon Forums

RimWorld => Mods => Help => Topic started by: smoq2 on February 02, 2015, 05:35:42 PM

Title: Console Debugging
Post by: smoq2 on February 02, 2015, 05:35:42 PM
Is there a way to get your code to print something in the console? Console.WriteLine (string); doesn't seem to work.
Title: Re: Console Debugging
Post by: skullywag on February 02, 2015, 05:40:48 PM
log.error();
Title: Re: Console Debugging
Post by: smoq2 on February 02, 2015, 05:43:35 PM
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.
Title: Re: Console Debugging
Post by: skullywag on February 02, 2015, 05:49:20 PM
Log.Error("some text" . variableName);

Should work perfectly
Title: Re: Console Debugging
Post by: Rikiki on February 02, 2015, 06:56:41 PM
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)
Title: Re: Console Debugging
Post by: smoq2 on February 03, 2015, 03:36:01 AM
Yep, works fine. Didn't know you have to use capital letters. Thanks for the help.