Handling callback exceptions and surfacing errors in dev tools

Hi, i want to setup error handlers for some of the callbacks to return dummy/empty data if code has failed for some reason. If error is not handled, then it will show up in dev tools. But if i handle the error using on_error parameter in the callback then dev tools will not get the error anymore. Is it possible to handle the error, so the data shown to the user is clean but also have the error show up in dash dev tools for debugging purposes?

For your scenario, it is advisable to persistently write relevant information into log files within the error handling logic to assist with troubleshooting.