Forums

[resolved] debug a plugin running in the admin menu (3 posts)

  1. ddeconin
    Member
    Posted 1 year ago #

    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 ?

  2. ddeconin
    Member
    Posted 1 year ago #

    it works now.

  3. ddeconin
    Member
    Posted 1 year ago #

    But better solutions for debugging are welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic