An option to replace warnings with errors

Warnings occur often and result in unintended behavior. They would be no different than errors except that they have absolutely no way to trace the script that caused them. I would like to be able to disable any warnings and replace them with errors so that I can actually see what I’m doing wrong.

I assume this would be easier than adding a way to trace warnings, which is why I’m not suggesting that.