Hmm, I'd go both ways on debug mode. Sometimes you want to run tests in non-debug mode, no? In case there's behavior that only shows up then?

I still think a JS array is better than using elements/attributes for this; easier to have multiple errors logged.