I'm using MAMP on Windows to start a web server for my WordPress website. I want to debug some PHP code (at least write variable values to log/browser console/anywhere else). I've tried to write in PHP source this:
debug_to_console($args);
var_dump($args);
error_log(print_r($args,true));
And looked for the result in MAMP/logs/phperror.log. But it doesn't write anything.
How to debug PHP code in this case?