Xdebug PHP extension cannot be turned off

Using the “ENABLE XDEBUG” toggle for a site changes the content of the php.ini from




However errors are still displayed using xdebug. Looking at the output of phpini() its shows that xdebug3 is being used. According to the phpini output those three settings are no longer in use?


Hey @Julian_MP welcome to Kinsta Community!
We’ll make a test to see if we can replicate the issue on this side, but if you would like to try a quick workaround, you can try to disable the xdebug mode entirely.

Open docker and use the left sidebar to move into the Containers tab. Once there, click on devkinsta_fpm and move into the Terminal tab. Write the command phpdismod xdebug, press enter and then click on the restart button at the top right (the circled arrow icon).

Best regards,

Thank you @Alessandro - very useful to have a workaround but would be really good to get a fix for this in DevKinsta if possible

Hey Julian, can you please share what DevKinsta version you are using?
I wasn’t able to replicate this on my machine with the latest DevKinsta version (2.11.0). I remember a similar bug being fixed some time ago, is it possible that your DevKinsta version isn’t up to date?


Hi Alessandro - I installed the latest version from your website yesterday


@Julian_MP can you please check something for me:

  1. Go inside the site setting in DevKinsta by clicking the wrench icon, note the PHP version used and be sure that the xdebug toggle is off and the php.ini file is saved.
  2. Then click on the top bar on DevKinsta, access the general settings, scroll all the way down, change the PHP Version to the one in use by your site and see if xdebug is enabled there as default package.
    If it is, uncheck that and save the setting :crossed_fingers:

Thank you! The local site is running 8.0 and in settings the view defaults to 8.2. I selected 8.0 and debug was checked in php.ini. I unchecked it and saved the setting and it correctly disabled debug. I can toggle it on and off using the php.ini so that’s great.

Using the “ENABLE XDEBUG” however does not work. I also changed my site to run on 8.2 and the ENABLE XDEBUG toggle does not work.

The php.ini solution is fine for my needs though but would be great to get the toggle working if possible.

Many thanks for sorting the solution, much appreciated!

1 Like

Glad that worked Julinan!
I was able to replicate the issue on my side too, I’ve reported the bug to our developers. Thank you for bringing this up!


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