puppeteer/docs/guides
Zeke Lu 0b717000ac
docs: prevent truncating of long messages with DEBUG_MAX_STRING_LENGTH=null (#9587)
<!-- Thanks for submitting a pull request! Please provide enough
information so that others can review your pull request. -->

**What kind of change does this PR introduce?**

It changes the docs.

**Did you add tests for your changes?**

No.

**If relevant, did you update the documentation?**

Yes.

**Summary**

When logging the DevTools protocol traffic, the default value of
`maxStringLength` is 10000. Messages longer than that will be truncated.
This change adds an example to show how to remove the limitation with
`DEBUG_MAX_STRING_LENGTH=null`.

See https://nodejs.org/api/util.html#util_util_inspect_object_options.

**Does this PR introduce a breaking change?**

No.

**Other information**

None.
2023-01-26 06:39:22 +00:00
..
chrome-extensions.md docs: various doc improvements (#9396) 2022-12-09 13:57:39 +01:00
configuration.mdx docs: various doc improvements (#9396) 2022-12-09 13:57:39 +01:00
debugging.md docs: prevent truncating of long messages with DEBUG_MAX_STRING_LENGTH=null (#9587) 2023-01-26 06:39:22 +00:00
docker.md chore: update troubleshooting guide (#9123) 2022-10-17 13:07:41 +02:00
evaluate-javascript.md docs: various doc improvements (#9396) 2022-12-09 13:57:39 +01:00
query-selectors.md docs: add guide on query selectors (#9328) 2022-11-25 08:58:21 +01:00
request-interception.md docs: various doc improvements (#9396) 2022-12-09 13:57:39 +01:00