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

Introduce dump_die to directly output result#13657

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
rvanlaak wants to merge1 commit intosymfony:2.7fromrvanlaak:patch-1
Closed

Introduce dump_die to directly output result#13657

rvanlaak wants to merge1 commit intosymfony:2.7fromrvanlaak:patch-1

Conversation

@rvanlaak
Copy link
Contributor

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PRsymfony/symfony-docs#4988

@nicolas-grekas
Copy link
Member

This do not save a single keystroke... What about d() + dd()? I'm not sure others would agree though

@rvanlaak
Copy link
ContributorAuthor

Some other helpers would be usefull. Was inspired by the Ladybug Helpers

https://github.com/raulfraile/LadybugBundle#helpers

@fabpot
Copy link
Member

I don't see a big value in adding more "shortcuts"; it makes things more difficult to learn and more confusing IMO.

@stof
Copy link
Member

I agree with@fabpot here

@fabpotfabpot closed thisFeb 16, 2015
@stofstof mentioned this pull requestJan 5, 2016
@garf
Copy link

garf commentedJan 5, 2016

It makes debugging easier and It's a helper. There is no need to learn it. You can only discover it suddenly and become happy.

shalvah reacted with thumbs up emoji

@ivoba
Copy link
Contributor

ivoba commentedNov 3, 2017
edited
Loading

Uh i just wanted to open a PR for this.
I still think its a useful helper and would save me tons of typing "exit;".
With code completion this will save keystrokes.

Btw the implementation here wont work, it will show the line of the dump call, which is inside of dump_die.

@nicolas-grekas
Copy link
Member

For reference, this is being reconsidered in#26970.

garf and rvanlaak reacted with thumbs up emoji

fabpot added a commit that referenced this pull requestApr 19, 2018
…s-grekas)This PR was merged into the 4.1-dev branch.Discussion----------[VarDumper] Add dd() helper == dump() + exit()| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -By popular demand, I feel like we should reconsider our refusal for a `dd()` global helper.For past references, see#26965,#26906,#13657,#17267,#19096.Commits-------a55916a [VarDumper] Add dd() helper == dump() + die()
@ivoba
Copy link
Contributor

nice!
in the meantime i wrotehttps://github.com/ivoba/dump-die-shortcuts
andhttps://github.com/ivoba/dump-die
Hopefully obsolete soon :)

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

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@rvanlaak@nicolas-grekas@fabpot@stof@garf@ivoba

[8]ページ先頭

©2009-2025 Movatter.jp