Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grasmash/xdebug-toggle
Simple CLI tools to toggle xdebug easily.
https://github.com/grasmash/xdebug-toggle
Last synced: about 2 months ago
JSON representation
Simple CLI tools to toggle xdebug easily.
- Host: GitHub
- URL: https://github.com/grasmash/xdebug-toggle
- Owner: grasmash
- Created: 2017-05-21T19:28:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T20:44:55.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T13:41:48.444Z (3 months ago)
- Language: PHP
- Size: 63.5 KB
- Stars: 16
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/grasmash/xdebug-toggle.svg?branch=master)](https://travis-ci.org/grasmash/xdebug-toggle)
# 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:
| Command | Description |
|---------|-------------------------------------------------|
| toggle | Enables or disables xDebug, depending on state. |
| enable | Enables xDebug. |
| disable | Disables xDebug. |
| status | Prints current status of xDebug. |### 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`.