Debug.Writeline

Hello All,

I can’t seem to find a clear cut answer for this. I have some code that can’t run in Unity that I want to debug in VS.

I would think adding :

#if !UNITY_EDITOR
System.Diagnostics.Debug.WriteLine(“test”)
#endif

would work. Unfortunately, it doesn’t show up in the VS window.

Any ideas.

Thanks

Use UnityEngine.Debug.Log instead.

Doesn’t that only show up in the unity?

It will show up in VS as well.