THIS IS MODIFIED VERSION OF ihorvorotnov/xdebug.sh TO WORK ON UBUNTU
Toggle Xdebug PHP extension on and off, from command line. Also, quickly check status (enabled/disabled) and versions (PHP and Xdebug).
- Ubuntu
- PHP installed via apk
- Laravel Valet for Linux as your local development environment
- Clone this repo somewhere
cd
into the dirchmod a+rx xdebug-toggle
- Create symlink
sudo ln -s /path/to/xdebug-toggle /usr/sbin/xdebug
- Run
xdebug help
Command | Description |
---|---|
xdebug on |
Turns on Xdebug extension and reloads PHP via Valet. Checks if it’s already enabled first. |
xdebug off |
Turns off Xdebug extension and reloads PHP via Valet. Checks if it’s already disabled first. |
xdebug status |
Checks whether Xdebug extension is enabled or not. |
xdebug version |
Shows PHP and Xdebug versions. |
xdebug help |
Shows this help. |
cd
into the dir- Run
git pull