Sacred-Seed-Studio / Unity-File-Debug

Enhanced debug logging for Unity, with JSON/CSV export and HTML viewer.
https://www.assetstore.unity3d.com/en/#!/content/72250
MIT License
61 stars 9 forks source link

ArgumentOutOfRangeException: Length cannot be less than zero. #8

Open Kayumiy opened 5 years ago

Kayumiy commented 5 years ago

When I use your asset, There is a bug "ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length".

ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length System.String.Substring (System.Int32 startIndex, System.Int32 length) (at :0) SSS.UnityFileDebug.UnityFileDebug.HandleLog (System.String logString, System.String stackTrace, UnityEngine.LogType type) (at Assets/Cmn/UnityFileDebug/Lib/Logger/Scripts/UnityFileDebug.cs:118) UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) (at C:/buildslave/unity/build/Runtime/Export/Application/Application.cs:121) UnityEngine.MonoBehaviour:.ctor()

can you help me solve this issue?

Frozenfire92 commented 5 years ago

Hi @Kayumiy

I suspect your issue may have been fixed with PR #9 I haven't released to the asset store yet but you can use this repo directly for now

If you don't mind sharing how you were using the logger that would be appreciated! If you don't have it anymore totally understandable :) Thanks for reporting