Currently, we have a react web app (say it is a form), when it is running on web browser, if there is any error, console.error will fire and we can see that in browser's console log and figure out what is the problem.
The app is working fine and no console.error firing.
Now the app is embedded into webview of IOS and android. When user is filling the form, click the submit button, some of the button and dropdown stops working (e.g. click but nothing happened or null)
I suspect is something undefined, but I have no proof.
Is there a way to ask IOS and android to behave like the web browser to output console.error? I can log it and feed it to the IOS / Android, but I don't know where exactly the problem is. If I can have console.error, it will tell me the location of error.