For anyone else coming across this and wondering how this works, here's a summary.
NOTE: I'm still learning xstate, so there may be better ways to do this!
Step #1, install debug
debug
is a small debugging library that can be used in the console or browser. In the screenshot above, each of the different colors comes from a different debug
instance. For example, I instatiate the following in my console application:
const dbgM: debug.Debugger = require('debug')("fsm:master");