grasmash / xdebug-toggle
Simple CLI tools to toggle xdebug easily.
Installs: 1 434
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 1
Forks: 4
Open Issues: 1
Requires
- php: >=5.6
- symfony/console: ^3.2
- symfony/filesystem: ^3.2
Requires (Dev)
- phpunit/phpunit: ~5
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^3.0
README
Xdebug Toggle
A PHP-based CLI tool for quickly enabling and/or disabling xdebug.
This tool simply "comments out" the line in your php.ini file that loads the xDebug Zend extension.
Available commands:
Example:
xdebug toggle
xdebug enable
xdebug disable
xdebug status
Installation
You may use Composer
to install this library. It is suggested that you install it globally and add Composer's global bin
directory to your system's $PATH
.
composer global require grasmash/xdebug-toggle --update-no-dev
Configuration
If your extension doesn't match the xdebug.so
name (e.g. you're on Windows), you can set a environment variable to correct file name: XDEBUG_EXTENSION_FILE_NAME
.