Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarDumper] add force-collapse/expand + use it for traces#23967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.4fromnicolas-grekas:collapse-trace
Aug 31, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedAug 23, 2017
edited
Loading

QA
Branch?3.4
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?not yet
Fixed tickets-
LicenseMIT
Doc PR-

This improves dumping stack traces by expanding only frames that are outside of vendor dirs.

Here the new CLI output (everything was expanded before):
capture du 2017-08-24 15-24-01

And here is the HTML output, with toggle-able frames:
capture du 2017-08-24 15-24-40

Todo:

  • make tests pass :)

apetitpa, yceruto, chalasr, and staabm reacted with thumbs up emoji
@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedAug 24, 2017
edited
Loading

PR ready, screenshot updated, now with less visual debt :)

Simperfit reacted with laugh emoji

@Simperfit
Copy link
Contributor

too much visual debt ! :p

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit0e2d2b8 intosymfony:3.4Aug 31, 2017
fabpot added a commit that referenced this pull requestAug 31, 2017
…ces (nicolas-grekas)This PR was merged into the 3.4 branch.Discussion----------[VarDumper] add force-collapse/expand + use it for traces| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | not yet| Fixed tickets | -| License       | MIT| Doc PR        | -This improves dumping stack traces by expanding only frames that are outside of vendor dirs.Here the new CLI output (everything was expanded before):![capture du 2017-08-24 15-24-01](https://user-images.githubusercontent.com/243674/29668407-614dfe32-88e0-11e7-85b3-8b4f774559a5.png)And here is the HTML output, with toggle-able frames:![capture du 2017-08-24 15-24-40](https://user-images.githubusercontent.com/243674/29668410-65170c16-88e0-11e7-9388-147475a76b9f.png)Todo:- [x] make tests pass :)Commits-------0e2d2b8 [VarDumper] add force-collapse/expand + use it for traces
@nicolas-grekasnicolas-grekas deleted the collapse-trace branchSeptember 1, 2017 07:00
This was referencedOct 18, 2017
fabpot added a commit that referenced this pull requestOct 29, 2017
…maxDepth (ogizanagi)This PR was merged into the 3.4 branch.Discussion----------[VarDumper] HtmlDumper: fix collapsing nodes with depth < maxDepth| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass?   | yes (failures unrelated)| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/AThis error happens since#23967:> (index):3 Uncaught TypeError: Cannot read property 'substr' of nullhttps://github.com/symfony/symfony/blob/98dae3edb1ba8fa35c06a8c9a459e0ffb9105826/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php#L325when trying to collapse the root node (or more precisely, the nodes with a depth <= maxDepth) because it misses one of the `sf-dump-expanded`/`sf-dump-compact` classes which are necessary for the toggling to work.Commits-------a1863c3 [VarDumper] HtmlDumper: fix collapsing nodes with depth <= maxDepth
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@Simperfit@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp