I'm debugging a javascript script running in QWebEngineView. I want to catch the js errors(such as calling a non-existed function) in Qt Creator. Currently, the js output through console.log() can be displayed in Qt application output window, but the syntax error messages cannot be caught. How to get those errors to make the debug easier?