Limit BlueScreen agent argument dumps#618
Open
janlanger wants to merge 19 commits into
Open
Conversation
* opened 3.0-dev * requires PHP 8.1 * uses PascalCase constants * removed bridge for Latte * Logger: added typehints * Logger: md5 replaced with xxHash * error.log changed to warning.log * bar: errors panel => warnings * readme: added link to Joomla integration (nette#583) Link to Joomla! integration. * used attribute Deprecated * Update readme.md Add link to Yii3 integration --------- Co-authored-by: David Grudl <david@grudl.com> Co-authored-by: n3t <n3t@n3t.cz>
dg
force-pushed
the
master
branch
2 times, most recently
from
July 18, 2026 02:16
1731e8d to
efbf873
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BlueScreen agent output currently dumps stack trace arguments without applying the same item and string limits that the HTML dump uses. In practice this can produce extremely large
.mdexception logs when a stack frame contains a large root array or object graph.A real case was a hydration frame with a large result. The MD file grew to ~100 MB because the agent dump expanded the whole argument list.
This change fixes that in two parts:
BlueScreen::getAgentDumper()now respectsmaxLengthandmaxItemsagent.phtmlare dumped with their argument name as the dumper key, so the existingDumper::ITEMSlimiting also applies to large root values