Debugged sequential relay switching