Skip to content

Instantly share code, notes, and snippets.

@sumitpore
Last active July 15, 2021 23:37
Show Gist options
  • Save sumitpore/d4004e2e67a4a3c82608470d9e4ef4a4 to your computer and use it in GitHub Desktop.
Save sumitpore/d4004e2e67a4a3c82608470d9e4ef4a4 to your computer and use it in GitHub Desktop.
Disable XDEBUG Debugging for WordPress Admin Requests
# 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>
@bsilvern
Copy link

Very useful! Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment