Source: paulund.co.uk

Alias To Enable Disable xdebug
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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners