Feature #1491
openJavascript debug options: add option 'quiet'
0%
Description
Hello!
Could you add option 'quiet' for tag in wt_config.xml?
This would work as 'false' or 'stack' but without alert message.
It will be usefull to hide all bugs when deploying in production.
Error messages should not be shown in production, and non-caught exceptions should not break application.
Workaround: use 'false' or 'stack' and replace built-in alert with noop:
alert = $.noop;
Updated by Boris Nagaev over 11 years ago
Update:
alert = $.noop;
does not work in IE 8.
Correct workaround: window.alert = $.noop;
I think 'quiet' mode should do nothink on error.
Another mode, 'console' should log error message using console.error().
Updated by Koen Deforche over 11 years ago
- Status changed from New to Feedback
Hey,
This would be the same behavior as 'true', which uses the browser-default handling of an error (which is to ignore the error, and/or log to an error console ?
Regards,
koen
Updated by Boris Nagaev over 11 years ago
Hello!
Browser-default handling behavior break an application in most cases. Non-caught exception causes page to hang and error message to occur in status line (at least, in IE).
Proposed behavior will catch all JS exceptions and
- do nothing (quiet)
- log them using console.log() function (console)