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

WIP [DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writing to stderr when the cli-server is in use#14373

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

Closed

Conversation

@nicolas-grekas
Copy link
Member

QA
Bug fix?yes
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#14608
LicenseMIT
Doc PR-

Whendump() is called, you all know this happens:
dump1

With this PR, dumps are duplicated in the console output of aphp -S process:
dump2

This does not work with php app/console server:run but that is for an other PR.

@nicolas-grekasnicolas-grekas added the DXDX = Developer eXperience (anything that improves the experience of using Symfony) labelApr 16, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

shouldn't you just write tophp://stderr instead of using the dumper ? Having all the info about the string does not make much sense IMO, and it could even get truncated by the dumper

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It's a shortcut to benefit from auto-selection of color support, but yes, it's possible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

but does it need to be colored as dumped strings ? It would be confusing in case the dumped value is also a string

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think so, but maybe in a different color/background. That's the kind of things we can tweak if the main idea is appealing to a majority.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

the idea looks good to me

@javiereguiluz
Copy link
Member

👍 I like the idea. Mostly because I think it feels like the natural behavior that you'd expect when using the built-in web server and thedump() function.

My only concern is: will it become a mess if I output a lot of variables or few but complex variables?

@nicolas-grekasnicolas-grekas changed the title[VarDumper] Duplicate dumps on stderr when using the embeded PHP server[WIP] [VarDumper] Duplicate dumps on stderr when using the embeded PHP serverApr 18, 2015
@nicolas-grekasnicolas-grekas changed the title[WIP] [VarDumper] Duplicate dumps on stderr when using the embeded PHP server[DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writting to stderr when the embeded PHP server is in useMay 14, 2015
@nicolas-grekasnicolas-grekas changed the title[DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writting to stderr when the embeded PHP server is in use[DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writing to stderr when the embeded PHP server is in useMay 14, 2015
@nicolas-grekasnicolas-grekas changed the title[DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writing to stderr when the embeded PHP server is in use[DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writing to stderr when the cli-server is in useMay 14, 2015
@nicolas-grekasnicolas-grekas changed the title[DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writing to stderr when the cli-server is in useWIP [DebugBundle] Allow configuring a dumper while collecting dumps, add a default one writing to stderr when the cli-server is in useMay 14, 2015
@nicolas-grekasnicolas-grekas deleted the dump-stderr branchMay 15, 2015 07:07
fabpot added a commit that referenced this pull requestMay 15, 2015
…olas-grekas)This PR was merged into the 2.6 branch.Discussion----------[DebugBundle] Allow alternative destination for dumps| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#14608| License       | MIT| Doc PR        | -This PRfixes#14608 by adding a new `debug.dump_destination` configuration option to give users control over a stream destination where dumps will be written to.In HTTP mode, dumps are still/also collected in the toolbar.This supersedes#14627,#14631 and#14373Commits-------5f255e5 [DebugBundle] Allow alternative destination for dumps5368483 [DebugBundle] Use output mechanism of dumpers instead of echoing8cb2abb [DebugBundle] Always collect dumps
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

DXDX = Developer eXperience (anything that improves the experience of using Symfony)

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@javiereguiluz@stof

[8]ページ先頭

©2009-2025 Movatter.jp