• Hello,

    im trying to create my first plugin for wordpress but have some problems debugging it.

    First i tried to use ini_set to enable debugging in wp-config.php until i found that WP_DEBUG has to be set. At the moment i have this solution:

    define('WP_DEBUG', true);
    if (WP_DEBUG) {
      define('WP_DEBUG_LOG', true);
      define('WP_DEBUG_DISPLAY', false);
    }

    So now at least i have errorlogging in a file. But there are still 2 problems.

    First, the smaller one, i cant change the location of the errorlog-file. Its not that important though but it seems my settings with ini_set are overwritten too.

    The bigger problem is the number of notices that the debuglog is showing. I cant change these notices because its from other plugins but it is disturbing when trying to find real errors.

    I tried to set the error_level but somehow this isnt taken into account or is overwritten. So i dont know how to set these values.

    Where or how can i change this?

    Thanks!
    Sebastian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SebastianJu

    (@sebastianju)

    In #wordpress irc i was told to use grep or derivates for windows to locate the errors i want to know… but im not really pleased with this workaround.

    I mean why should wordpress-developers take away the possibilities of setting your own error_reporting-levels or ini-set? In my tests these were simply overwritten or not taken into account. But why shouldnt i be allowed to change the location and name of my error-log or what kind of problem is stored in this log? I mean i cant change problems in other plugins anyway. So i get a big list of notices i dont need or can change.

    Is it really not possible to change these settings? I have read in previous versions it was handled another way and these options could be set.

    Thread Starter SebastianJu

    (@sebastianju)

    How can i contact the developers that changed this part of wordpress? Because search results are telling me in the past these settings could be used so someone had to change this.
    So how can i contact the developer that changed this to ask him directly?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Debugging WordPress Plugins’ is closed to new replies.