Auto-detect javascript errors and warn theme user

Why not just use the browser’s “developer” tool to display the errors and the code that caused the error? I know for a fact that IE, Firefox and Safari each have developer tools available (I use them all the time) – I don’t know about other browser’s capabilities.