What are the best waus to debug a plugin running in the admin piece of wordpress ( on post create ) ?
I tried
$myFile = ALD_mostrecent_DIR . "/logFile.txt" ;
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "test";
fwrite($fh, $stringData);
Inside my plugin but it doesnt seem to write things out ?