Unity-File-Debug icon indicating copy to clipboard operation
Unity-File-Debug copied to clipboard

ArgumentOutOfRangeException: Length cannot be less than zero.

Open Kayumiy opened this issue 5 years ago • 1 comments

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?

Kayumiy avatar Oct 25 '19 00:10 Kayumiy

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

Frozenfire92 avatar Oct 31 '19 15:10 Frozenfire92