# Set xdebug.mode to develop by default

**URL:** <https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897>\
**Category:** Completed Feature Requests\
**Tags:** xdebug\
**Created:** [October 27, 2022, 1:45pm UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897 "2022-10-27T13:45:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProxxiM](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/proxxim/32/5784_2.png) [@ProxxiM](https://community.localwp.com/u/ProxxiM)\
**Post date:** [October 27, 2022, 1:45pm UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/1 "2022-10-27T13:45:38Z")

</div>

Hi,

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.

xdebug.mode = debug:

 ![Schermafbeelding 2022-10-27 om 15.43.05](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/2/1/217a16930db9d6a51d500d391b24c2350454705a.png)

xdebug.mode = develop:

 ![Schermafbeelding 2022-10-27 om 15.43.38](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/5/6/56e185a2a7f0714f043c0ac384941f8847523c64.png)

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [October 27, 2022, 5:49pm UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/2 "2022-10-27T17:49:35Z")

</div>

`var_export( $var, true );`

---

<div class="post-metadata">

**Author:** ![ProxxiM](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/proxxim/32/5784_2.png) [@ProxxiM](https://community.localwp.com/u/ProxxiM)\
**Post date:** [October 28, 2022, 9:18am UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/3 "2022-10-28T09:18:00Z")

</div>

Hi @afragen,

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.

 ![Schermafbeelding 2022-10-28 om 11.16.47](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/c/4/c4b33bef5684d2eee50e98009ef0cde695c2f457.jpeg)

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [October 28, 2022, 4:07pm UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/4 "2022-10-28T16:07:43Z")

</div>

Hi there @ProxxiM - thanks for the suggestion!!

There is a very similar thread over in the Bug category - [xDebug + Local v6.4.3 + macOS not running](http://community.localwp.com/t/xdebug-local-v6-4-3-macos-not-running/33424) - 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!

---

<div class="post-metadata">

**Author:** ![ProxxiM](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/proxxim/32/5784_2.png) [@ProxxiM](https://community.localwp.com/u/ProxxiM)\
**Post date:** [October 31, 2022, 9:09am UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/5 "2022-10-31T09:09:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [November 15, 2022, 9:25pm UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/6 "2022-11-15T21:25:27Z")

</div>

Hi @ProxxiM and all,

This has been completed as part of our latest Local release, v6.5.2! [www.localwp.com/releases/6.5.2](http://www.localwp.com/releases/6.5.2)

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [November 17, 2022, 9:26am UTC](https://community.localwp.com/t/set-xdebug-mode-to-develop-by-default/33897/7 "2022-11-17T09:26:02Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
