I think xdebug.mode previously was set to ‘develop’. Now it’s set to ‘debug’ by default, which doesn’t wrap the output in pre-tags.
With the develop-setting this made output from PHP functions like var_dump() way more readable for developers. Longer, but way more readable.
I am able to change the setting in the php.ini.hbs file, but it would be way nicer to be able to modify this setting by default for every new website created in Local. Be it with an addon or a setting in Local.
When I use echo var_export($var, true); (Without xdebug.mode=develop of course) the results only look mildly better. The output isn’t wrapped in pre-tags either.
There is a very similar thread over in the Bug category - xDebug + Local v6.4.3 + macOS not running - where we created a ticket in our backlog for patching this up.
We’ll be tackling this in an upcoming sprint very soon, so expect to see this fixed shortly!
Sounds good, @austinwendt!
I didn’t stumble upon the mentioned topic with the search functionality, I’ve subscribed to it so I’ll keep my eye on any updates from now on.
Xdebug mode will be debug,develop by default going forward. If for some reason you’re not seeing the correct value in your php.ini file, try changing the PHP version to a different value on the site overview page and then change it back again (i.e., change it to PHP 8.1.9, then immediately change it back). This will force Local to grab the updated config file if it didn’t automatically.