Unity didn't like me doing Debug.log(new char[] {(char)65, (char)66});
and gave me the crappy output of System.Char[]
. Thank you Unity. Very cool. So I decided to make a few functions to (hopefully) let you throw anything into a debug.
Current supported types:
- Idk literally any that works with generics
It does all primative types (int, string, bool, float, double, etc...), arrays of primative types and classes (int[], string[] float[], double[]), custom-classes (ik, very cool), enums.
Want to debug a thing? Here's how you do it with DebugIt:
DebugIt.LogIt(<your really cool variable goes here>);
That's it. It'll log the thing.
(you can also do type specific debugs if you really want, itll do the same thing anyway tho, such as DebugIt.LogClass();
)
This project is licensed under the [MIT] License - see the LICENSE file for details