johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.59k stars 208 forks source link

Can QM intercept var dumps? #876

Closed qwertydude closed 2 months ago

qwertydude commented 2 months ago

Is it possible in PHP for QM to be able to intercept var dumps and then display them nicely in its interface?

If not, is there (can you add) a function in QM that is an alternative to var dump that could do this?

Thanks

johnbillion commented 2 months ago

Yep! You can log output to the Logs panel for exactly this. Docs here: https://querymonitor.com/wordpress-debugging/profiling-and-logging/