Can you disable the ionic error handler?


#1

I’m already in the devtools, and the ionic error handler means I can’t put a breakpoint on uncaught exceptions (it catches them), and putting breakpoints in caught exceptions means I have to keep hitting “continue” a hojillion times as the polyfills test browser functionality.

the documentation makes no indication as to how I would just turn this functionality off.


#2

I haven’t tested this, but does simply commenting out the following line in app.module.ts disable it?
{provide: ErrorHandler, useClass: IonicErrorHandler}

If not, the next thought I have is creating a custom dummy error handler and replacing useClass: IonicErrorHandler with userClass: DummyErrorHandler.


#3

aha, yeah - that does it. silly me, I should have looked there. thanks.