[wp-trac] [WordPress Trac] #43292: Add dd() function for debugging

WordPress Trac noreply at wordpress.org
Mon Feb 12 09:11:51 UTC 2018


#43292: Add dd() function for debugging
-------------------------+-----------------------------
 Reporter:  danieltj     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  4.9.4
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Definitely a low priority task, however I feel that including a `dd()`
 function in Core would be great for debugging quickly and efficiently. I
 find myself needing to use this but not wanting to including it in every
 bit of work I do as it's pointless to have it for individual projects.

 `dd` stands for `dump and die`. The PHP framework, Laravel has this
 function built in which accepts one parameter of a variable, will call
 `var_dump()` with the variable and immediately call `die()` to stop script
 execution.

 Can this be added as it's a small and simple function that is very handy
 to have for testing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43292>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list