yutv / xdebug-toggle
xdebug toggle
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
This package is auto-updated.
Last update: 2020-12-03 17:03:51 UTC
README
It is a bash script for the fast enabling/disabling Xdebug.
Prerequisites
- Fedora Linux
- PHP-FPM from https://rpms.remirepo.net/
- awesome-terminal-fonts
Installation
-
Install xdebug-toggle
composer global require yutv/xdebug-toggle:dev-master
-
Insert the following line into ~/.bashrc
export PS1=$(echo "$PS1" | sed -E 's/(\])(\\\$)/\1\\[\$(ps1-xdebug-status)\\]\2/')
-
Make sure that the ~/.composer/vendor/bin directory is added to your PATH, e.g.:
~/.bashrc
export PATH=$HOME/bin:$HOME/.composer/vendor/bin:$PATH:$HOME/.local/bin
-
Reconnect SSH/Bash Terminal
Usage
xdebug # enable Xdebug
xdebug # disable Xdebug