How to disable Xdebug in 5.9.3?

Issue Summary

I am following the instructions on this FAQ post:

I cannot turn off xdebug no matter what. Looking at local-phpinfo.php shows that it’s always enabled no matter what I do.

I have followed the above instructions exactly several times to no effect. I can actually delete the php.ini.hbs file and restart and that does absolutely nothing.

Note that the Loaded Configuration File directive is set to: /home/myname/.config/Local/run/x4v7JU6kO/conf/php/php.ini

Editing this file and then restarting also does nothing.

Please advise

One or two sentence summary of the issue.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    All sites

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

System Details

  • Which version of Local is being used?
    5.9.3

  • What Operating System (OS) and OS version is being used?
    Debian linux Buster

I was able to disable Xdebug in a local instance by creating a php.ini file in /app/public/ of my WordPress site and adding the following:

xdebug.remote_enable=0
xdebug.remote_autostart=0

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