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
cd
into 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. |
cd
into the dir- Run
git pull
- Add GIF screenshot
- Some sane refactoring
- Add automatic config discovery
- Add
version
argument - Restart only PHP with Valet
- Add
config
argument - Add
config path
argument - Add
config get $2
argument to get a particular value - Make in installable via Homebrew