I tried this code and it wouldn't allow it. I get the error "No appropriate version of 'UnityEngine.Debug.Log' for the argument list '(String, UnityEngine.Vector3)' was found"
This class saved me a lot of time while debugging!
using System.Text;
using UnityEngine;
public class Puts
{
public Puts(params object[] args)
{
var sb = new StringBuilder();
foreach (var arg in args)
sb.Append(arg).Append(" ");
Debug.Log(sb.ToString());
}
}
Usage: new Puts("hello", 123);
Visual Studio shows warning on this line - so I will not forget to remove this puts after finished debugging problem