Last active
July 15, 2021 23:37
-
-
Save sumitpore/d4004e2e67a4a3c82608470d9e4ef4a4 to your computer and use it in GitHub Desktop.
Disable XDEBUG Debugging for WordPress Admin Requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you are debugging a code in editors like Visual Studio Code (VSCode) or Sublime | |
# Text and if you see that breakpoints are getting triggered due to WordPress Ajax | |
# requests, then XDEBUG Remote Debugging can be disabled for Ajax Requests by | |
# adding code below in .htaccess file. | |
<If "%{REQUEST_URI} =~ /admin-ajax/"> | |
php_value xdebug.remote_enable 0 | |
</If> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful! Thank you!!!