Skip to content

Kimi2016/Unity-File-Debug

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-File-Debug

Enhanced debug logging for Unity, with JSON export and HTML viewer. Read the blog post. See the demo.

Why

This project has a few goals:

  • Output Unity debug info to log files
  • A nice web interface to view the logs
    • HTML5
    • No external dependencies
    • Searchable via message, stacktrace, timestamp, logtype
    • Filterable by logtype
  • Be able to drop it into existing projects

How to use

  1. Import the latest release's package into your project
  2. Move the prefab Unity File Debug into your scene
  3. Setup the filepath and settings in the inspector
  4. Copy the HTML to your output path via inspector button
  5. Use Debug.Log as normal, or for more advanced usage see Tester script in Demo folder
  6. Open the index.html file from your log folder, browse for a *.json log in the top left

Developing

  • Fork/clone this repository
  • Open in Unity
  • Hack away

Release

In the Unity Editor, click the menu option Package/Update Package. The UnityFileDebug.unitypackage will be in the root of this project.

About

Enhanced debug logging for Unity, with JSON export and HTML viewer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 73.2%
  • C# 26.8%