I don't like debugger
. It's a risky piece of code to be adding into an application.
If this is accidentally left in the application prior to a live deployment, then the script will pause when developer tools are open.
Is there a cross-browser way of preventing debugger
from pausing the code?
Then this could be configured so that debugger
only pauses when the application is in development mode.