yutv/xdebug-toggle

xdebug toggle

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

dev-master 2019-10-03 13:40 UTC

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

Installation

  1. Install xdebug-toggle

     composer global require yutv/xdebug-toggle:dev-master
    
  2. Insert the following line into ~/.bashrc

     export PS1=$(echo "$PS1" | sed -E 's/(\])(\\\$)/\1\\[\$(ps1-xdebug-status)\\]\2/')
    
  3. 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
    
  4. Reconnect SSH/Bash Terminal

Usage

xdebug # enable Xdebug
xdebug # disable Xdebug