Vvv: XDebug not formatting var_dump after updating vvv to 3.5.1

Created on 27 Jan 2021  Â·  3Comments  Â·  Source: Varying-Vagrant-Vagrants/VVV

I updated to VVV 3.5.1 earlier today, and noticed that output from var_dump() is now not formatted.

Browsing recent documentation, I'm now aware that xdebug itself was updated to v3, and accordingly, I've tried using the new command switch_php_debugmod xdebug to enable debugging — which successfully activates xdebug, seemingly, but yet xdebug is _still_ not formatting var_dump() output.

Anyone have any ideas about how to get this working properly again?

Thank you!

question support

All 3 comments

Did you try this on the develop branch? This is a known/fixed issue, Xdebug 3 did not have development aids mode turned on by default.

I'm going to close this as already fixed in 3.6 via https://github.com/Varying-Vagrant-Vagrants/VVV/commit/f37068217f418b260f30322e5f1a54a539ea5688, if this is still an issue on the develop branch then we can reopen

Hey @tomjn — thanks! Was actually just coming back here right now to close this out myself, as I managed to resolve it (figured out that it was tied to the new xdebug modes, and dev aids being disabled, as you mentioned).

I didn't try develop, nor was I even aware that was possible — I simply updated VVV using git pull, per the documentation, when prompted during an unrelated earlier re-provision, which is what brought me up to the latest release, 3.5.1, and when the problem arose.

For anyone else in the same position, and who wants a quick fix without switching to the develop branch: in config/php-config/xdebug.ini just changing the line xdebug.mode=debug to xdebug.mode=develop, then re-provisioning and starting xdebug seems to do the trick.

As an aside, develop is pretty stable, a lot of us use it in day to day work, and more often than not it has fixes that stable doesn't have. 3.6 is scheduled for before the end of the month so you wouldn't have to wait long

Was this page helpful?
0 / 5 - 0 ratings