Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [10/21]

static void Debug.Log ( [NotNull] Expression< Func< object >>  classMember,
[NotNull] Expression< Action >  methodContext 
)
static

Logs to the Console the name and value of classMember class member along with method signature on the second line to provide additional context.

public void SetActivePage(Page value) { activePage = value;

Debug.Log(()=>activePage, ()=>SetActivePage(value)); }

Parameters
classMemberExpression pointing to a class member whose name and value will be logged.
methodContextExpression pointing to a method to which the message relates.