Extended Trace: a protocol for tracing object attributes
“trace” command was extended:
- trace widget .b -state w SetButtonState
- searches traceable types for keyword “widget”
- calls trace handler for “widget”
To create a new traceable type:
- register trace keywords and an optional C callback
- insert FATCAT C call after change to object attribute