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

Piping to NodeJS Web inspector console format in Puppeteer #684

Closed
dtel opened this issue Feb 18, 2019 · 1 comment
Closed

Piping to NodeJS Web inspector console format in Puppeteer #684

dtel opened this issue Feb 18, 2019 · 1 comment

Comments

@dtel
Copy link

dtel commented Feb 18, 2019

I'm using puppeteer to evaluate some scripts and capture its console output to NodeJS environment. The package I'm using to run in Puppeteer uses the debug module.

The problem is the output in Nodejs comes in the web inspector format (%c) and hence not colorized. Is there a way to tell debug to output in NodeJS format when run in puppeteer (browser)?

@Qix-
Copy link
Member

Qix- commented Mar 7, 2019

It's tricky - there's an issue about it where I implement a hack to do this, but it relies upon Node internals and thus might not work as expected.

See #483 (comment).

Going to close as a duplicate.

@Qix- Qix- closed this as completed Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants