[wp-trac] [WordPress Trac] #33740: Create a new API to standardize application tracing

WordPress Trac noreply at wordpress.org
Fri Oct 21 12:56:09 UTC 2016


#33740: Create a new API to standardize application tracing
-------------------------------+------------------------------
 Reporter:  bobbingwide        |       Owner:
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Bootstrap/Load     |     Version:  4.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by jdgrimes):

 I used to do a lot of my debugging using `var_dump()`, `error_log()`,
 etc., and I had my own library of tools kind of like this. Then I started
 using xDebug and a proper IDE that integrated with its remote debugging
 API. This is definitely superior in most cases. The only time that I still
 use my own tools is if using xDebug isn't a possibility or isn't set up
 and I just need to do something real quick. In other words, I think it is
 much better to encourage people to use a different debugging workflow,
 especially for local development. As far as attempting to debug a live
 site goes, I can see where and API like this would be helpful (been there,
 done that). However, most problems will be plugin-related, and since it
 will be forever and a day before most plugins start using such an API in a
 helpful way, I'm not sure that it is worth pursuing. Of course you can
 always manually mark up plugin code with these functions during debugging.
 But you can already do that now, just as I used to do.

 Anyway, I can just imagine that I thought this might be a pretty good idea
 when the ticket was first opened, but looking back I'm glad that I usually
 don't use a debugging workflow like this anymore. So I question whether it
 makes sense to promote this particular debugging workflow in core.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33740#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list