DEV Community

Cover image for PHP features you use for debugging purposes ?
Carleii Dev
Carleii Dev

Posted on

4 3

PHP features you use for debugging purposes ?

What are the #PHP features you use for debugging purposes ?

  • Print_r()
  • var_dump()
  • assert()
  • debug_backtrace_*()

What else?

Top comments (5)

Collapse
 
codewithcaen profile image
CodeWithCaen

If in the Laravel ecosystem (and/or Symfony), the dump() and dd() helpers

Collapse
 
stephanie profile image
Stephanie Handsteiner

Just don't forget to remove the dd()/debug() calls before sending the PR off for review. 🤪

Collapse
 
tw2113 profile image
Michael Beckwith

XDebug

Collapse
 
carleii_dev profile image
Carleii Dev

Var_dump Always for me

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay