In this tutorial we're going to create a command line alias to quickly enable or disable xdebug. This will need to point to the xdebug extension file.
An easy way to disable xdebug is to rename the extension so that it can't be found, therefore we can create two scripts that will enable or disable xdebug, then we can create command line aliases making it very easy for us to switch xdebug on or off.
https://paulund.co.uk/alias-enable-disable-xdebug#command-line-aliasNext we can make sure we can quickly run these scripts from any project we're working on by creating a command line alias to run these.
Now we can run exd from the command line to enable xdebug and dxd to disable xdebug.