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

Capture Console? #109

Open
johnaweiss opened this issue May 23, 2020 · 4 comments
Open

Capture Console? #109

johnaweiss opened this issue May 23, 2020 · 4 comments

Comments

@johnaweiss
Copy link

Beginner question:

Is it possible to capture all chrome console messages using javascript?
This would be a stand-alone chrome browser, not headless.
Running inside the same browser-instance-- not a client/remote browser.

What's the simplest, most lightweight solution?

thx!

@Garbee
Copy link
Contributor

Garbee commented Jun 2, 2020

I don't believe there is any exposure to intercept those messages. What is your use-case for needing such a feature?

@johnaweiss
Copy link
Author

johnaweiss commented Jun 2, 2020 via email

@Garbee
Copy link
Contributor

Garbee commented Jun 2, 2020

IDEs tend to connect using remote debugging which allows API access via the Chrome DevTools Protocol. That way your IDE is the debugger for the app rather than having DevTools open and your IDE. That's how they tend to get access to the logs.

Would using the remote debugging setup not work for some reason?

@Yash-Singh1
Copy link

I had a similar problem. My solution was to edit the console functions: https://github.com/Yash-Singh1/zoom.js/blob/master/test/auto.js#L3

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

3 participants