From 3def8a25580ebd922e7301597ca47d28abafbb9c Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 18 Apr 2019 10:03:30 -0700 Subject: [PATCH] docs(readme): fix debugging tips (#4304) Since we migrated to flatten protocol, the `protocol:session` DEBUG namespace no longer exists. Fix #4299. --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 897f76f888c8d..9a8a74b214415 100644 --- a/README.md +++ b/README.md @@ -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)