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
Feature request: expose URL and line number for ConsoleMessage object #3029
Comments
@stereobooster sure, that's possible. Would you mind sharing a story why would you need this? |
I see some console logs in the output, I want to track where they were called. It is not always trivial to do. https://github.com/stereobooster/react-snap is the tool I'm working on |
Reasonable. |
Would this be the same information given to the right of each console item, in DevTools, identifying the calling resource and the line number (eg. |
@andrew-st-angelo-77media yeah that would be it. |
Can i work on this issue if no one is working on it ? @aslushnikov |
@silent-lad please go ahead |
@stereobooster - I've created a pull request to support the above. a few notes:
|
This patch add additional method to ConsoleMessage object sent on console event. Currently, added URL and line number to additionalInfo. Fixes puppeteer#3029
This patch add additional method to ConsoleMessage object sent on console event. Currently, added URL and line number to additionalInfo. Fixes puppeteer#3029
Is this issue is closed or I can start working on this ? |
there is #3365 |
This patch adds a new consoleMessage.location() method that returns console message origins. Fixes #3029
LogEntry object provides url and lineNumber
can we also expose it?
Related source https://github.com/GoogleChrome/puppeteer/blob/25632133e2683c613c97d9088968c48e3c07a086/lib/Page.js#L167-L173
The text was updated successfully, but these errors were encountered: