Skip to content

kreso22/Unity-3D-Debug-console-with-color.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

  This is a proof of concept rather than a full scale solution
	
	Showing how to color text & how to wrap it so it jumps to line of code being debugged.


	1. To color text wrap it in <color></color> tags
	2. [UPDATED: no longer need to compile to DLL] To enable double-click on console to jump to proper line of code - code needs to be wrapped with `#line` like so:
	```
	#line hidden
	    public static void log(int type, object str, int lvl, GameObject context)
	    {
	        ...
	    }
	#line default
	```



	debug.log("Important message. Color it red and show in the console");

	debug.log(debug.cat.YOURCATEGORY, "Debug message from a specific category. Custom color and important level (will always print)");

	debug.log(debug.cat.YOURCATEGORY, "Debug message from a specific category, moderate importantce (marked as debug level 5)", 5);

	debug.log(debug.cat.YOURCATEGORY, "Debug message, same as previous but will also print gameObject containing this call, it's name as well as highlight it from console+click)", 1, gameObject);

Alt text

You can now sort through debug output.

Sort by importance level (you set level within debug call itself, for each message).

Check/uncheck categories.

And you can mark an object sa 'important' (just drag&drop). This will make all messages from that gameObject and all objects within same GameObject hierarchy of that object - come up as important (red & bolded text). To clear important object field click the small red tick box.

About

Advanced Unity debugger. Allows use of color, level of importance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages