Debugging

From Freephile Wiki
Revision as of 18:18, 10 February 2025 by Admin (talk | contribs) (remove old info)

Debugging a PHP application can involve quite a bit of machinery, and effort getting that machinery setup. But it's worth it because what alternative is there? echo? Come on!

Thanks to Derick Rethans, XDebug can do a ton of cool things for you. For example, it overloads var_dump() and gives you control over how you want deeply nested data structures to be displayed.

We did an old deep dive using NetBeans and XDebug on a complex CiviCRM mailer embedded as a module in Drupal

A more current setup would be debugging Semantic MediaWiki in a Docker container using VSCode with PHPDebug.