Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add dump_die function #26965

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

Closed
wants to merge 1 commit into from
Closed

Add dump_die function #26965

wants to merge 1 commit into from

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