Project

General

Profile

Feature #1491

Javascript debug options: add option 'quiet'

Added by Boris Nagaev about 10 years ago. Updated about 10 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/20/2012
Due date:
% Done:

0%

Estimated time:

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;
#1

Updated by Boris Nagaev about 10 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().

#2

Updated by Koen Deforche about 10 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

#3

Updated by Boris Nagaev about 10 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)

Also available in: Atom PDF