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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners