Debug.Log Extensions
Documentation (1.1.9)

◆ LogException() [3/3]

static void Debug.LogException ( int  channel,
Exception  exception,
Object  context = null 
)
static

Logs an exception to the Console on the given channel .

Parameters
channelThe channel to which the message belongs.
exceptionRuntime exception to display.
contextObject to which the message applies.

If you pass a context argument that Object will be momentarily highlighted in the Hierarchy window when you click the log message in the Console.