Stride Forums Archive

How to Debug with console?

4 posts, 2255 views, 2016-09-03 to 2016-09-08

xxf2103625 2016-09-03 #1

LogMessage log = new SiliconStudio.Core.Diagnostics.LogMessage();
log.Text = “xxflog:” + Entity.Transform.Position.X;
Log.Log(log);
My code like this.But it don’t show in the Output window.
My englist is pool, herd to find it in API.

Nicogo (Goosse Nicolas) 2016-09-04 #2

Hi, i think you should use “SiliconStudio.Core.Diagnostics.GlobalLogger.GetLogger” to get a logger and then write your logMessage into it. In your code, you’re writting a LogMessage Inside a LogMessage.

xxf2103625 2016-09-04 #3

Dont work.
I just want to use Console.WriteLine("").I see it in Manual,but I can not write in 1.8.0-beta.
Do u know that?

You could use System.Diagnostics.Debug.WriteLine("")

Console.WriteLine is not available in Portable .NET