AngularJS seems to complete the user-provided callbacks in try-catch . This can be useful in production, but I can skip critical exceptions during development.
How to disable this feature? I want Angular not to catch or undo all exceptions in user code.
Example:
$http.get(someUrl) .success(function(data){
I get an unhandled exception inside functionA , and functionB never executed. Usually the exception is the bubbles at the top, and I see a red message in the console. But this time I didn’t do it, so it took me 5 minutes to debug what happened.
PS : Chrome devtools has the ability to pause the handling of processed exceptions. Unfortunately, there are a lot of them, but most seem to be thrown and processed inside AngularJS. I have an application full of invisible errors, or is this fine for Angular. Regardless, is there a way to tell Angular not to swallow exceptions, as in the example?
source share