Skip to content

Conversation

joubertredrat
Copy link

Today I use dump and die when I'm debugging my project, then I think that is best to encapsulate this into dump_die function.

Q A
Branch? 3.4 and newer
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Today I use `dump` and `die` when I'm debugging my project, then I think that is best to encapsulate this into `dump_die` function.
@curry684
Copy link
Contributor

@nicolas-grekas
Copy link
Member

Actually, we might reconsider, see #26970
Thank you for the proposal @joubertredrat

@joubertredrat
Copy link
Author

@nicolas-grekas but but but but .... okay

index

But if can be reconsidered, I agree with this 👍

@nicolas-grekas
Copy link
Member

It is being reconsidered :)
see #26970

fabpot added a commit that referenced this pull request Apr 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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants