Title: best way to debug a plugin ?
Last modified: August 19, 2016

---

# best way to debug a plugin ?

 *  [samba-lee](https://wordpress.org/support/users/samba-lee/)
 * (@samba-lee)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/debugging-1/)
 * Wondered what the best way to debug a plugin was. I fiddling with an LDAP plugin
   and want to browse some of the passed-to and calculated values in the script,
   but I can’t find any method other than die() to view any data. Not impressed 
   by WP’s suggestion of using die.
 * Tried php error_log() but nothing is produced.
 * Turn on errors and get lots of notifications, but non to do with my script. Is
   there a really obvious way of writing debug info somewhere ?
 * thanks
 * Lee

The topic ‘best way to debug a plugin ?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [samba-lee](https://wordpress.org/support/users/samba-lee/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/debugging-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
