DebugIt
A downloadable tool
A replacement for Unity's Debug.Log
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 primitive types (int, string, bool, float, double, etc...), arrays of primitive 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
Some examples:
Basic types
DebugIt.LogIt("a very cool string"); DebugIt.LogIt(new int[] {10,20,30,40,50}); DebugIt.LogIt(new string[][] { new string[] { "AA", "AB" }, new string[] { "BA", "BB" } });
Custom class
DebugIt.LogIt(new DebugClass()); class DebugClass { public string testString = "test str"; public char testChar = (char)65; public bool testBool = true; public int testInt = 1023; }
You can also do type specific debugs if you really want, it'll do the same thing anyway though, such as:
DebugIt.LogClass();
This cool tool is also open-source and will more likely be up to date here:
https://github.com/ZeppelinGames/DebugIt
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.