Support » Plugin: WP PHP Console » var_dump / xdebug

  • Resolved figoware


    Nice plugin! Much easier than doing by hand!

    Except var_dump function : when plugin activated, var_dump stop using xdebug PHP extension. So, render is ugly. Very difficult to read.
    Yes, I can use PC::debug instead, but sometimes it will be easier to have the real var_dump displayed in xdebug format (usefull for search attributes for exemple).

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fulvio Notarstefano


    Hey there,

    Sorry I haven’t looked into this.

    I guess we should consider this by design: you won’t have Xdebug output because PHP Console will “hijack” the output that you’d normally have in your page to bring it on the JS console. I believe this plugin is for folks that on the contrary don’t want output in the webpage or logs, but only in the console.

    If you need to switch between debug tools you could toggle PHP Console activation by clicking on the Chrome extension button that normally activates the terminal. That panel also shows to you some options you could fiddle with to check if there’s a combo that best suits your debugging environment.

    You can also open an issue with to see if they have a recommendation.

    Cheers and thanks for trying out the plugin in your development work.

    Thread Starter figoware


    Thank you for answering…
    I’ve posted here because I already use PHP-Console in other project (non-Wordpress), and I can use var_dump() with PHP console enabled without any problem.

    So, I was thinking it was a issue only with the WP plugin…

    (couple of minutes later)… I just investigated, and I found it!

    The vendor/php-console included with your plugin was different than my version.
    So, I downloaded the official php-console-master from barbushin on Gitbug, replaced the plugin vendor/php-console by the downloaded one, and… tada… it works the same way than my other projects !

    Anyway, many thanks!

    Plugin Author Fulvio Notarstefano


    interesting, probably needs to update the core library, will push a release for this

    thanks for the finding!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘var_dump / xdebug’ is closed to new replies.