mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: add debug example for logging all but filtering just protocol messages (#11685)
This commit is contained in:
parent
33ae46759d
commit
0ac68b4776
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user