Good coding:

Give every object a UID

Make a widget "uid-chip" that gets a persistent color based on the hash of the UID.

In dev mode, put it in the corner of every UI element linked to an object.

"Is this UI using the current value? AHA NO, OBVIOUSLY"