Exception breakpoints
Debugging can be quite complex on websites with scripts minified or with other optimization measurements applied. In those scenarios breakpoints cannot be set on correct positions, stack traces cannot provide sufficient clues, even from error outputs, important information may still can’t be gathered.
To overcome the limitations mentioned above, we expected browsers to be paused on exceptions or errors occur. Fortunately, both Firefox and Chrome already supported the measure ‘break on exceptions’, that feature allows browsers to break their executions while exceptions have been caught or uncaught.
You can read the following articles to set it for your browsers.
Pause Your Code With Breakpoints | Tools for Web Developers | Google Developers