What are the #PHP features you use for debugging purposes ?
- Print_r()
- var_dump()
- assert()
- debug_backtrace_*()
What else?
What are the #PHP features you use for debugging purposes ?
What else?
For further actions, you may consider blocking this person and/or reporting abuse
Eduardo Messuti -
Dรกvid Lukรกฤ -
Abdullah Al Mamun Fahim -
Jeongho Nam -
Top comments (5)
If in the Laravel ecosystem (and/or Symfony), the
dump()
anddd()
helpersJust don't forget to remove the dd()/debug() calls before sending the PR off for review. ๐คช
The old
print_r()
is pretty convenient, so you may use like that:It's definitely not the most modern way, but it works pretty much everywhere.
To go further, I recommend profiling the app with dedicated tools such as Blackfire. xdebug is really awesome for debugging too.
XDebug
Var_dump Always for me