-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rvanlaak
commented
Feb 11, 2015
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | |
License | MIT |
Doc PR | symfony/symfony-docs#4988 |
This do not save a single keystroke... What about d() + dd()? I'm not sure others would agree though |
Some other helpers would be usefull. Was inspired by the Ladybug Helpers |
I don't see a big value in adding more "shortcuts"; it makes things more difficult to learn and more confusing IMO. |
I agree with @fabpot here |
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. |
Uh i just wanted to open a PR for this. Btw the implementation here wont work, it will show the line of the dump call, which is inside of dump_die. |
For reference, this is being reconsidered in #26970. |
…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()
nice! |