Toggle Xdebug PHP extension on and off, from command line. Also, quickly check status (enabled/disabled) and versions (PHP and Xdebug).
- macOS
- Homebrew
- PHP installed via Homebrew
- Xdebug extension installed via PECL
- Laravel Valet as your local development environment
- Clone this repo somewhere
cdinto the dirchmod a+rx xdebug.sh- Create symlink
ln -s /path/to/xdebug.sh /usr/local/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. |
cdinto the dir- Run
git pull
- Add GIF screenshot
- Some sane refactoring
- Add automatic config discovery
- Add
versionargument - Restart only PHP with Valet
- Add
configargument - Add
config pathargument - Add
config get $2argument to get a particular value - Make in installable via Homebrew
