A simple way to show PHP variables and stack trace
-
As a WP beginner, I was looking around for php debug possibilities. Up to now, I found the recommendation to
define('WP_DEBUG', true);
inwp-config.php
. This plugin brings us a much further. We can log $variable values simply by writingtrigger_error(print_r($variable, true));
We see the variable, the call stack and timestamp.
Great.
The only WP configuration required is installing the plugin and defining a password.
I assume it is secure when we enter our IP address.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A simple way to show PHP variables and stack trace’ is closed to new replies.