示例#1
0
 private void HandleJSError(JSException ex)
 {
     UnityEngine.Debug.LogError(ex);
     if (Configurations.Debugging)
     {
         string dump = FormatCodeInfo(threadContext.DumpMessage());
         UnityEngine.Debug.Log(dump);
         LogToFile("[JSERROR]" + (" Recent code:" + dump + '\n') + ex.Message);
     }
     else
     {
         LogToFile("[JSERROR]" + ex.Message);
     }
 }