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

4 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/AshleyJSheridan Jun 03 '25

I'm not a big fan of using attributes for things like this, and it's not a solution in all cases, depending on what that sensitive information is and how it is received or generated. However, my point stands, and you agree, there is a reason why you would remove information from being logged.