Debugging WordPress Plugins
-
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
- The topic ‘Debugging WordPress Plugins’ is closed to new replies.