Skip to content

Commit

Permalink
docs(readme): fix debugging tips (#4304)
Browse files Browse the repository at this point in the history
Since we migrated to flatten protocol, the `protocol:session` DEBUG
namespace no longer exists.

Fix #4299.
  • Loading branch information
aslushnikov committed Apr 18, 2019
1 parent 0c4d53b commit 3def8a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Expand Up @@ -238,12 +238,8 @@ Puppeteer creates its own Chromium user profile which it **cleans up on every ru
# Basic verbose logging
env DEBUG="puppeteer:*" node script.js

# Debug output can be enabled/disabled by namespace
env DEBUG="puppeteer:protocol" node script.js # protocol connection messages
env DEBUG="puppeteer:session" node script.js # protocol session messages (protocol messages to targets)

# Protocol traffic can be rather noisy. This example filters out all Network domain messages
env DEBUG="puppeteer:session" env DEBUG_COLORS=true node script.js 2>&1 | grep -v '"Network'
env DEBUG="puppeteer:*" env DEBUG_COLORS=true node script.js 2>&1 | grep -v '"Network'

6. Debug your Puppeteer (node) code easily, using [ndb](https://github.com/GoogleChromeLabs/ndb)

Expand Down

0 comments on commit 3def8a2

Please sign in to comment.