How to pause on network errors in chrome

I have enabled Pause on caught/uncaught exceptions in chrome however when we get a 404() error the debugger doesn’t pause.

For e.g. click ‘Throw 404’ button in below url and see that debugger doesn’t pause.

https://developers.google.com/web/tools/chrome-devtools/console/get-started#browser

Further it also doesn’t pause on a syntax error.

How can I cause debugger to pause on any error what so ever

How to pause on network/syntax JS errors in chrome

I have enabled Pause on caught/uncaught exceptions in chrome however when we get a 404() error the debugger doesn’t pause.

For e.g. click ‘Throw 404’ button in below url and see that debugger doesn’t pause.

https://developers.google.com/web/tools/chrome-devtools/console/get-started#browser

Further it also doesn’t pause on a syntax error.

How can I cause debugger to pause on any error what so ever

JavaScript to Monitor a Website Error

I need an urgent help. I am developing a chrome extension to monitor a ‘particular’ website. and when I am using that website(any page of that website like a normal user) and some error occurrs, lets say, 404 error, User name password is not matching, javascript should capture it and alert me.

Any hints how can I capture these errors in javascript? I will run this js as a backgroung job in chrome extension.

Please post relevent articles if you have.

Appreciate your help