• Resolved davidgrishaver

    (@davidgrishaver)


    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

    (@nekojira)

    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.