# Xdebug 3.0.0

**URL:** <https://community.localwp.com/t/xdebug-3-0-0/23240>\
**Category:** Feature requests\
**Tags:** xdebug\
**Created:** [December 4, 2020, 1:13am UTC](https://community.localwp.com/t/xdebug-3-0-0/23240 "2020-12-04T01:13:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidfw](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/davidfw/32/11966_2.png) [@davidfw](https://community.localwp.com/u/davidfw)\
**Post date:** [December 4, 2020, 1:13am UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/1 "2020-12-04T01:13:28Z")

</div>

Hi, when is the included xdebug 2.9.0 going to be updated to the [recently released 3.0.0 (Nov. 25, 2020)](https://xdebug.org/announcements/2020-11-25)? Version 3 offers several [significant performance improvements](https://php.watch/articles/xdebug2-vs-3-benchmark) to the debugging experience.

---

<div class="post-metadata">

**Author:** ![tyrann0us](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/tyrann0us/32/11751_2.png) [@tyrann0us](https://community.localwp.com/u/tyrann0us)\
**Post date:** [December 15, 2020, 9:30am UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/2 "2020-12-15T09:30:19Z")

</div>

Just wanted to let you know that PhpStorm 2020.3 does not work with Xdebug \< `v2.9.6`, see [https://youtrack.jetbrains.com/issue/WI-57282](https://youtrack.jetbrains.com/issue/WI-57282).  
While this issue will be fixed in 2020.3.1, Local should definitely update Xdebug, at least to the latest `v2.*` version, which is `v2.9.8` as of time of writing, see [https://xdebug.org/announcements/2020-09-28](https://xdebug.org/announcements/2020-09-28).

---

<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:** [December 24, 2020, 6:35pm UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/3 "2020-12-24T18:35:27Z")

</div>

xDebug is now at 3.0.1 and Local Beta is testing PHP 8 with xDebug 3.0. It’s probably time to consider updating the other PHP lightning services to use xDebug 3.x. This should now be more painless with the lightning services updater 😉

Working default settings for xDebug 3.x and Local can be found here, [Install PHP 8](https://localwp.com/community/t/install-php-8/22673/8)

It would require updates to have xDebug 3.x listening on port 9003 for any add-ons that set these values.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [February 26, 2021, 7:31pm UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/5 "2021-02-26T19:31:29Z")

</div>

I don’t have an eta on when this will be worked on, but I have put it on our development radar!

---

<div class="post-metadata">

**Author:** ![davidfw](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/davidfw/32/11966_2.png) [@davidfw](https://community.localwp.com/u/davidfw)\
**Post date:** [March 6, 2021, 12:20am UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/6 "2021-03-06T00:20:37Z")

</div>

I’m not sure what the difficulty is in updating the default configuration in LocalWP but I was able to determine a workaround based on how I observed the settings changed when moving between PHP 7 and 8 for my site in LocalWP.

Here’s my workaround to backport xdebug 3 to PHP 7.4:

1. Download the latest php\_xdebug DLL that matches the PHP version running for the site in LocalWP from [Xdebug: Downloads](https://xdebug.org/download)  
In my case on a Windows OS it was to download this one [PHP 7.4 VC15 (64 bit)](https://xdebug.org/files/php_xdebug-3.0.3-7.4-vc15-nts-x86_64.dll)
2. Copy that DLL into the Local lightning-services folder for the respective PHP version (e.g. `%APPDATA%\Local\lightning-services\php-7.4.1+14\bin\win64\ext`
3. For simplicity, I renamed the downloaded DLL to php\_xdebug3.dll
4. Edit the LocalWP site’s php.ini.hbs config file’s `[xdebug]` section with the following (I kept the old xdebug settings in {{!-- --}} comment blocks just in case I want to go back to the built-in xdebug v2:

```auto
{{!--
[xdebug]
{{#if os.windows}}
zend_extension = php_xdebug.dll
{{else}}
zend_extension = {{extensionsDir}}/xdebug.so
{{/if}}

xdebug.remote_enable=1
xdebug.remote_connect_back=Off
xdebug.remote_port="9000"
xdebug.profiler_enable=0
--}}

[xdebug]
{{#if os.windows}}
zend_extension = php_xdebug3.dll
{{else}}
zend_extension = {{extensionsDir}}/xdebug.so
{{/if}}

xdebug.mode=debug
xdebug.client_port="9000"
xdebug.start_with_request=yes
xdebug.discover_client_host=yes

```

1. Restart your LocalWP site and confirm the upgrade by visiting your PHP info page (`/local-phpinfo.php`):  
 ![php_info_with_xdebug3](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/1/1b24c0accb3e5760a5705eda675dc313db22ff30.png)  
 ![xdebug3](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/f/ffa9eef16ba1264000332aaee2653df6b3b2e44f.png)

---

<div class="post-metadata">

**Author:** ![royrogers](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@royrogers](https://community.localwp.com/u/royrogers)\
**Post date:** [March 8, 2021, 11:49am UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/7 "2021-03-08T11:49:12Z")

</div>

Great!  
It is working,just the location of the file is:

%APPDATA%\Roaming\Local\lightning-services\php-7.4.1+14\bin\win64\ext

Thank you!

---

<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 8, 2021, 7:03pm UTC](https://community.localwp.com/t/xdebug-3-0-0/23240/8 "2021-11-08T19:03:07Z")

</div>

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