Title: var_dump / xdebug
Last modified: August 17, 2018

---

# var_dump / xdebug

 *  Resolved [figoware](https://wordpress.org/support/users/figoware/)
 * (@figoware)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/var_dump-xdebug/)
 * Hi!
    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](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/var_dump-xdebug/#post-10679435)
 * 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 [https://github.com/barbushin/php-console](https://github.com/barbushin/php-console)
   to see if they have a recommendation.
 * Cheers and thanks for trying out the plugin in your development work.
 *  Thread Starter [figoware](https://wordpress.org/support/users/figoware/)
 * (@figoware)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/var_dump-xdebug/#post-10680145)
 * Hi,
    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](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/var_dump-xdebug/#post-10680178)
 * 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.

 * ![](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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/var_dump-xdebug/#post-10680178)
 * Status: resolved