Search Unity

Getting the stack trace from a caught exception?

Discussion in 'iOS and tvOS' started by cory_munky, Feb 4, 2016.

  1. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    We are catching and logging some Null Reference exceptions in our game, but the exception.StackTrace is turning out to be an empty string.

    Is this expected? Is there any way to get a trace of the point of the null reference?
    Unity 5.3.2p1, iOS, IL2CPP

    Thanks!
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    @cory_munky

    This should work correctly. Can you try it with a simple test project both in the editor and on the device?