docs: add debug example for logging all but filtering just protocol messages (#11685)

This commit is contained in:
David Beitey 2024-01-15 07:58:08 +00:00 committed by GitHub
parent 33ae46759d
commit 0ac68b4776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,4 +135,7 @@ env DEBUG="puppeteer:*" env DEBUG_MAX_STRING_LENGTH=null node script.js
# Protocol traffic can be rather noisy. This example filters out all Network domain messages
env DEBUG="puppeteer:*" env DEBUG_COLORS=true node script.js 2>&1 | grep -v '"Network'
# Filter out all protocol messages but keep all other logging
env DEBUG="puppeteer:*,-puppeteer:protocol:*" node script.js
```