I'm getting an "element has no properties" on line 1276 of prototype.js, which is almost certainly a result of a call I'm making in the $F('fieldname') syntax. I know what usually causes this-- misspellings of 'fieldname', or neglecting the quotes around it if it's a string literal. Generally an easy fix.
Thing is, I've just connected many, many untested functions with many, many instances of $F('whatever'). Looking through them is excrutiating, and breaking apart the functions to test them individually is not a desirable solution. Is there a way to toss in some error-handling or event-logging that'll give me a better idea about what attempted element is failing?