Title: Debug Plugin .php
Last modified: October 17, 2017

---

# Debug Plugin .php

 *  Resolved [davidgrishaver](https://wordpress.org/support/users/davidgrishaver/)
 * (@davidgrishaver)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/debug-plugin-php/)
 * Is there a trick to get this to work from within .php files in a plugin? I found
   the code would flow to the javascript console in my functions.php file but would
   throw errors if I was trying to debug a plugin.
 * Thanks,
    Dave

Viewing 1 replies (of 1 total)

 *  Plugin Author [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-plugin-php/#post-9762381)
 * Hey David,
 * I am not sure if I understand your question. If your plugin is activated, it 
   should be then included/loaded in WordPress and get caught by PHP Console. If
   this doesn’t happen, is your code running in the first place? Is perhaps hooking
   too early?
 * There’s a chance where PHP Console is unable to help you is when your code breaks
   WordPress too early and triggers a fatal error before PHP Console or WordPress
   is leaded entirely. But in that case the browser screen would show where the 
   error is.
 * PHP Console is also not helpful in detecting out of memory errors if you have
   something like an infinite loop for instance.
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Debug Plugin .php’ is closed to new replies.

 * ![](https://ps.w.org/wp-php-console/assets/icon-256x256.png?rev=1070278)
 * [WP PHP Console](https://wordpress.org/plugins/wp-php-console/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-php-console/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-php-console/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-php-console/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-php-console/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-php-console/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/debug-plugin-php/#post-9762381)
 * Status: resolved