Installs a listener to track any thrown (unrecoverable) C# exception. This may be useful when incurring in abort was called errors.
abort was called
By default, it only tracks exceptions that were thrown by the caller thread.
It may not work for every platform.
Il2Cpp.perform(() => { Il2Cpp.installExceptionListener("all"); // rest of the code}); Copy
Il2Cpp.perform(() => { Il2Cpp.installExceptionListener("all"); // rest of the code});
For instance, it may print something along:
System.NullReferenceException: Object reference not set to an instance of an object. at AddressableLoadWrapper+<LoadGameObject>d__3[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0 Copy
System.NullReferenceException: Object reference not set to an instance of an object. at AddressableLoadWrapper+<LoadGameObject>d__3[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
Optional
Installs a listener to track any thrown (unrecoverable) C# exception.
This may be useful when incurring in
abort was callederrors.By default, it only tracks exceptions that were thrown by the caller thread.
It may not work for every platform.
For instance, it may print something along: