Title: Howto get Debug running
Last modified: August 19, 2016

---

# Howto get Debug running

 *  [Cees van Dongen](https://wordpress.org/support/users/ceesvandongen/)
 * (@ceesvandongen)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/howto-get-debug-running/)
 * I am having a problem getting the debug mode operational.
    Entered the next at
   the bottom of the wp-config.php /* start debug settings in wp-config.php */ @ini_set(‘
   display_errors’,0); @ini_set(‘log_errors’,1); define(‘WP_DEBUG’, true); // Turn
   debugging ON define(‘WP_DEBUG_DISPLAY’,false); // Turn forced display OFF define(‘
   WP_DEBUG_LOG’, true); // Turn logging to wp-content/debug.log ON /* end debug
   settings */
 * but the debug.log file is not created.
 * What could be wrong?
    Thanks for yr support, Cees

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/howto-get-debug-running/#post-1661175)
 * Where are you expecting the file to be?
 * It should be in the `wp-content` directory (since we can generally assume that
   folder has write permissions – needed for uploads).
 * See Nacins blog here.
    [http://www.andrewnacin.com/2010/03/22/deprecated-functions-and-wp_debug/](http://www.andrewnacin.com/2010/03/22/deprecated-functions-and-wp_debug/)
 * Point of interest.
    [http://core.trac.wordpress.org/browser/trunk/wp-includes/load.php?rev=13780#L220](http://core.trac.wordpress.org/browser/trunk/wp-includes/load.php?rev=13780#L220)
 * Hope that helps.. 🙂
 *  Thread Starter [Cees van Dongen](https://wordpress.org/support/users/ceesvandongen/)
 * (@ceesvandongen)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/howto-get-debug-running/#post-1661214)
 * Thanks Mark for yr reply. Although very interesting links it did not helped me
   solving the issue.
    I do expect the debug.log file to be created in the wp_content
   directory. The folder has write permission, but for an unknown reason the file
   is still not created. I am puzzled. rgrds, Cees
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/howto-get-debug-running/#post-1661267)
 * Seems to be working just fine for me…. 🙂
 * Of course there needs to be errors occuring for the log to be created / updated..
 * I changed the callback function name in an add_action for testing, eg..
 *     ```
       add_action('some_action','some_non_existant_function');
       ```
   
 * Which produced a warning (i leave error display on), and the appropriate debug.
   log file was created, and note, i also tested with display errors set to false(
   to see if there was any difference, there wasn’t – the file was created in both
   instances).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Howto get Debug running’ is closed to new replies.

## Tags

 * [wp_debug](https://wordpress.org/support/topic-tag/wp_debug/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/howto-get-debug-running/#post-1661267)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
