Using this simple plugin, you can update
wp-config.php
by setting the PHP named constants used for WordPress debugging via a simple UI. Those named constants are
WP_DEBUG
,
WP_DEBUG_LOG
,
WP_DEBUG_DISPLAY
, S
CRIPT_DEBUG
, and
SAVEQUERIES
.
This plugin also allows you to view the
debug.log
file from within the WP Admin panel, without the need to view the file directly.
Moreover, this plugin introduces two functions,
wp_debug()
and
wp_debug_queries()
, that allow you to output debugging messages to either the display or the
debug.log
file.
This plugin is intended for development purposes only
For full documentation, visit
http://www.nostracon.net/wp-debug/
From your WordPress dashboard
- Visit
Plugins -> Add New
- Search for
nostraCon WP Debug
- Activate
nostraCon WP Debug
from your Plugins page.
From WordPress.org
- Download
nostraCon WP Debug
- Upload the
nostracon-wp-debug
directory to your /wp-content/plugins/
directory
- Activate
nostraCon WP Debug
from your Plugins page.
If the plugin cannot be activated
If you were unable to activate the plugin, it is most probably due to file protection and permissions set to protect
wp-config.php
. If this happens, the plagin will display a message on the screen to allow you to copy certain lines of code into
wp-debug.php
and save manually.
Remember, this plugin is for development purposes only, and if you decide to change file permissions to change the access privileges for wp-config.php
, then it is better to do so in a secure development enironment. If you need to use this plugin in a live environment, and you change your file permissions to allow this plugin to work, then you have to ensure that wp-debug.php
is protected again after you finish using this plugin.
Once Activated
- Access
WP Debug
from the WP Admin panel, and then click on Settings
(i.e., 'WP Debug -> Settings`).
- Change the debug settings to your preferences. The bottom section shows the settings changes that will be made to
wp-config.php
.
- Click
Save Changes
to save the settings.
Visit
http://www.nostracon.net/wp-debug for documentation on how to use this plugin.