Interference with error handling and console logging?
-
I’d been having problems debugging *my* JavaScript- embedded in a WP page. It was crashing with no sign of the cause- a typo which *should* have resulted in an “Uncaught ReferenceError” on the developer console but didn’t.
At first I thought this was a Firefox config issue, but behaviour in Chrome was identical, and a non-WP test page displayed the error correctly in both.
I eventually remembered that jQuery Migrate Helper (which was enabled) intercepted exceptions and wondered if that was the cause. Lo and behold, when it was disabled, the “Uncaught ReferenceError” (in *my* code) appeared as expected. When it was re-enabled, my error was hidden.
Is this known and expected behaviour for the “Enable JQuery Migrate Helper” plugin?
Thanks.
- The topic ‘Interference with error handling and console logging?’ is closed to new replies.