Edge debugger not pausing on missing javascript function

316 Views Asked by At

Edge debugger (Dev Tools) not pausing on missing javascript functions.

The console shows the message, but does not pause: Uncaught ReferenceError: ChangeInvoiceNbr is not defined at HTMLButtonElement.onclick.

How do I pause on a ReferenceError?

I have "pause on uncaught exceptions" and "Pause on caught exceptions" checked.

I tried intercepting console.log messages, but ReferenceError messages seem to bypass that function, even though they show in the console.

While the exception is shown at the bottom of the image, it does not pause at line 66. The script exits the function without completing. enter image description here

1

There are 1 best solutions below

0
GaryH On

When Script debugging is Enabled, Visual Studio takes over and it doesn't seem to catch all exceptions. When it's disabled, Edge will stop at the exception. Looks like a Visual Studio bug to me. I'll report it.

enter image description here