Debug.Log Extensions
Documentation (1.1.9)

◆ LogChanges() [1/2]

static void Debug.LogChanges ( Expression< Func< object >>  classMember,
bool  pauseOnChanged = false 

Logs to the Console the name and value of classMember any time its value is changed.

This will continue happening until CancelLogChanges(MemberInfo) is called with an expression pointing to the same class member.

At runtime logging takes place at the end of each frame.

classMemberExpression pointing to the class member to track.
pauseOnChangedIf true then the editor will be paused whenever the value of the class member changes; otherwise, editor will not be paused.

In builds this parameter will have no effect; the application will not be paused regardless of its value.