{"id":23066399,"url":"https://github.com/xjine/unity_xdebug","last_synced_at":"2026-05-02T03:32:15.555Z","repository":{"id":83607039,"uuid":"147650955","full_name":"XJINE/Unity_XDebug","owner":"XJINE","description":"XDebug has Debug class and it will replace UnityEngine.Debug. The (X)Debug class will keep logs with these time and the tag.","archived":false,"fork":false,"pushed_at":"2019-12-11T05:30:48.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T09:12:37.410Z","etag":null,"topics":["assets","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XJINE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-06T09:33:51.000Z","updated_at":"2022-05-13T16:32:53.000Z","dependencies_parsed_at":"2023-07-08T19:31:26.945Z","dependency_job_id":null,"html_url":"https://github.com/XJINE/Unity_XDebug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XJINE/Unity_XDebug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XJINE%2FUnity_XDebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XJINE%2FUnity_XDebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XJINE%2FUnity_XDebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XJINE%2FUnity_XDebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XJINE","download_url":"https://codeload.github.com/XJINE/Unity_XDebug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XJINE%2FUnity_XDebug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assets","unity"],"created_at":"2024-12-16T05:13:03.039Z","updated_at":"2026-05-02T03:32:15.532Z","avatar_url":"https://github.com/XJINE.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity_XDebug\n\nXDebug has Debug class and it will replace UnityEngine.Debug.\nThe (X)Debug class will keep logs with these time and the tag.\n\n## Import to Your Project\n\nYou can import this asset from UnityPackage.\n\n- [XDebug.unitypackage](https://github.com/XJINE/Unity_XDebug/blob/master/XDebug.unitypackage)\n\n## How to Use\n\n### Log Control with Tag\n\nLog and the output are able to control with tag.\n\nDefault tag value is ``null`` and it is enabled.\nYou can switch the setting with ``Debug.NullIsEnableTag`` if you need.\n\nEX:\n```csharp\nDebug.EnableTag(\"TAG_A\");\nDebug.DisableTag(\"TAG_B\");\n\nDebug.Log(\"Message01\", \"TAG_A\");\nDebug.Log(\"Message02\", \"TAG_B\");\nDebug.LogWarning(\"Message03\", this);\n```\nRESULT:\n```\nMessage01\nMessage03\n```\n\n### Output Format\n\nOutput format is able to customize with ``Debug.LogData.StringFormat``.\nThis format is used as ```String.Format``` when the message will be generated.\n\nThen, following KEYs are replaced with ``Debug.LogData`` field values.\n\n| KEY | FIELD                       |\n|:----|:----------------------------|\n| {0} | Message                     |\n| {1} | Context                     |\n| {2} | Tag                         |\n| {3} | LogType                     |\n| {4} | Time in Time.sinceLevelLoad |\n| {5} | Time in System.DateTime.Now |\n\nEX:\n```csharp\n Debug.LogData.StringFormat = \"[{5}] {0}\";\n Debug.Log(\"MESSAGE04\");\n```\n\nRESULT:\n```\n[14:28:59] Message04\n```\n\nSome of these formats are able to set with the following settings.\n\n```csharp\nDebug.LogData.StringFormatNullMessage = \"\";\nDebug.LogData.StringFormatNullContext = \"\";\nDebug.LogData.StringFormatNullTag     = \"\";\nDebug.LogData.StringFormatDateTimeNow = \"HH:mm:ss\";\n```\n\n### Output IEnumerable\n\nIEnumerable message such as Array, List and any others are separated into each item with ``Debug.LogData.StringFormatSeparator``.\n\nEX:\n```csharp\nList\u003cint\u003e list = new List\u003cint\u003e() { \"Message05\", 6, 7 };\nDebug.Log(list, \"TAG_A\");\n```\n\nRESULT:\n```\nMessage05, 6, 7\n```\n\n### Keep Logs\n\nLogs are keeped in ``Debug.Logs`` upto ``Debug.MaxLogCount``.\n\nEX:\n```csharp\n// Take null tagged logs with LINQ.\nforeach (Debug.LogData log in Debug.Logs.Where\u003cDebug.LogData\u003e(log =\u003e log.tag == null))\n{\n    Debug.Log(log);\n}\n```\n\n### Disable Output\n\n``Debug.UnityLoggerEnabled`` equals ``UnityEngine.Debug.unitylogger.enabled.``.\nWhen it gets false, no messages are output but the log will be kept in ``(X)Debug.Logs``.\n\nEX:\n```csharp\nDebug.UnityLoggerEnabled = false;\n\nDebug.Log(\"Message08\");\n\nDebug.UnityLoggerEnabled = true;\n\nforeach (Debug.LogData log in Debug.Logs)\n{\n    Debug.Log(log);\n}\n```\n\nRESULT:\n```\n~\nMessage08\n```\n\n## Limitation\n\n### Reference of Message and Context\n\n\"message\" and \"context\" are keeped as string in ``Debug.LogData`` because \"object message\" and \"Object context\" are may be null.\n\n### To Keep Consle Click Action\n\nIn standard Unity editor, we can jump to the call-point of ``Debug.Log`` in source code with console click.\n\nHowever if make a wrapper function of these, the call-point is set inside the wrapper.\n\nUnfortunately, there are no way to solve this problem from any code. \nTo avoid this problem, we have to make a \".dll\".\n\nThis is the reason why assets directory doesn't include any source code of ``XDebug``.\n\n- Reference\n    - https://answers.unity.com/questions/176422/debug-wrapper-class.html\n    - https://answers.unity.com/questions/1226230/how-to-properly-call-debuglogstring-in-a-custom-lo.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjine%2Funity_xdebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxjine%2Funity_xdebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjine%2Funity_xdebug/lists"}