I am trying to debug a plugin and am using
error_log() in various places to see what various things are. I am using the following:
error_log( print_r( $variable ) );
When I look at
debug.log, all I see is
1 and the actual output of the
error_log() function is sent to the browser instead.
I know another plugin is not doing this as all are disabled with the exception of the one I am writing and in my
wp-config.php I define
The same thing happens if I use
var_export() as well. Other functions like
gettype() and such are working just fine.
Any way to get the output back into