0.19: DEBUG_MODE added, state start vs trigger check in debug mode, event usage check in debug mode