Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capturing console messages #1487

Open
andrewbaxter opened this issue Feb 11, 2025 · 0 comments
Open

Capturing console messages #1487

andrewbaxter opened this issue Feb 11, 2025 · 0 comments

Comments

@andrewbaxter
Copy link

Is your feature request related to a problem? Please describe.
I'm running a service that uses a webview and I'd like to monitor it externally (system logs), in case there are errors with scripts that are running, etc.

Describe the solution you'd like
I think the simplest solution would be some method to hook into the webview's console. AFAIK Android has an onConsoleMessage callback, I'm not sure about others (I'm on linux).

Describe alternatives you've considered
In my case I'm most interested in errors, so if there were a way to add a global error handler that'd work too. Javascript does have a window error callback but AFAICT it doesn't trigger in all situations.

Additional context
This may not be possible, but I figured it'd be worth discussing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant