4 ms·
When I'm writing a state machine I make sure to add a method like machine.changeState( newState, "reason"); Now you can add a dlog inside changeState to see a
by xsmasher 13y ago
When I'm writing a state machine I make sure to add a method like machine.changeState( newState, "reason");
Now you can add a dlog inside changeState to see a history of state transitions and why they were made; useful for figuring out why you got where.
That's not something inherent to state machines, though.