r/PHPhelp • • Jun 03 '25

Troubleshooting PHP

So my web app has multiple PHP files. How can I monitor all PHP activity, specifically errors and any "echo" statements?

I've come across Xdebug, but my PHP has "Thread Safety" disabled:

php -i | grep "Thread Safety"

Thread Safety => disabled

3 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/obstreperous_troll Jun 03 '25

You can also pull in extra context in a logging handler like, say, the session id. Redaction is also a thing: #[SensitiveParameter] is brand-new and doesn't necessary cover everything you might want to redact. But yeah, an example that just reproduces built-in behavior isn't terribly illuminating.