All Projects → w00fz → Xdebug Osx

w00fz / Xdebug Osx

Licence: mit
Simple bash script to toggle xdebug on/off in OSX

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Xdebug Osx

Mos
一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS
Stars: ✭ 7,772 (+2912.4%)
Mutual labels:  osx, homebrew
App Downloader
Easily search for macOS apps from the `homebrew cask` app catalog.
Stars: ✭ 166 (-35.66%)
Mutual labels:  osx, homebrew
Mas
📦 Mac App Store command line interface
Stars: ✭ 8,603 (+3234.5%)
Mutual labels:  osx, homebrew
Jarvis
Dotfiles for a powerful, web development-focused environment powered by Neovim, iTerm2, tmux, and zsh
Stars: ✭ 617 (+139.15%)
Mutual labels:  osx, homebrew
homebrew-extensions
🍻 Homebrew tap for PHP extensions
Stars: ✭ 264 (+2.33%)
Mutual labels:  homebrew, xdebug
Homebrew Pothos
Homebrew formulas for Pothos and SoapySDR
Stars: ✭ 52 (-79.84%)
Mutual labels:  osx, homebrew
Servpane
A launchd menu bar app for Mac
Stars: ✭ 99 (-61.63%)
Mutual labels:  osx, homebrew
Dotfiles
vim, zsh, git, homebrew, nvm, neovim - my whole world
Stars: ✭ 2,217 (+759.3%)
Mutual labels:  osx, homebrew
Iterm Fish Fisher Osx
Complete guide and Bash script to install Command Line Tools + Homebrew + iTerm2 + Fish Shell + Fisher + Plugins for development purposes
Stars: ✭ 249 (-3.49%)
Mutual labels:  osx, homebrew
Openssl Osx Ca
Simple periodic task to sync OSX Keychain certs to Homebrew installed OpenSSL & LibreSSL
Stars: ✭ 185 (-28.29%)
Mutual labels:  osx, homebrew
mac-cleanup-sh
🗑️ Cleanup script for macOS (DEPRECATED)
Stars: ✭ 1,585 (+514.34%)
Mutual labels:  homebrew, osx
brewfile
🍎 Brewfile to install softwares in macOS for engineers
Stars: ✭ 37 (-85.66%)
Mutual labels:  homebrew, osx
homebrew-adobe
@Homebrew tap for @adobe apps and plugins.
Stars: ✭ 24 (-90.7%)
Mutual labels:  homebrew, osx
rocksmithconvert
Simple standalone OSX app to convert Rocksmith 2014 .psarc (CDLC) files between PC and MAC.
Stars: ✭ 45 (-82.56%)
Mutual labels:  osx
Popover
Custom macOS Popover 💬
Stars: ✭ 71 (-72.48%)
Mutual labels:  osx
dotfiles
🏠 dotfiles for my macOS environment
Stars: ✭ 17 (-93.41%)
Mutual labels:  homebrew
installme-osx
My personal script to setup a new OSX
Stars: ✭ 57 (-77.91%)
Mutual labels:  osx
omnitty
Omnitty: Multiple-Machine SSH Multiplexer
Stars: ✭ 20 (-92.25%)
Mutual labels:  osx
Phew
FLIF image viewer and QuickLook plugin for macOS
Stars: ✭ 74 (-71.32%)
Mutual labels:  osx
yout
🔥 YouTube playlist player for desktop. Free, no YouTube ads, floating window. Available for Linux, Mac and Windows.
Stars: ✭ 82 (-68.22%)
Mutual labels:  osx

Xdebug Toggler for OSX

Xdebug is a must have extension for PHP, although the times you don't actually need it, it's a drag.

This simple script allows to toggle on and off Xdebug and is meant for anyone running PHP and Xdebug installed via Homebrew.

You can follow the OS X Apache Setup guide, divided in two parts, to get the perfect MAMP setup on OSX:

This script is inspired by the great sphp script. Which I highly suggest to install if you need to switch easily between php versions. However since it's been quite inactive I am now running and maintaning my own implementation. You can get it from https://gist.github.com/w00fz/142b6b19750ea6979137b963df959d11

Quick Installation

curl -L https://raw.githubusercontent.com/w00fz/xdebug-osx/master/xdebug-toggle > /usr/local/bin/xdebug-toggle

Installation with clone

git clone [email protected]:w00fz/xdebug-osx.git

Add /usr/local/bin to your $PATH. If you use the Bash shell, you can do this by running this command:

echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.bashrc

You may need to restart your shell for this to take effect, or refresh it with source ~/.bashrc.

If you want the global command then run:

cd xdebug-osx
ln -s `pwd`/xdebug-toggle /usr/local/bin/xdebug-toggle

Make sure xdebug-toggle is executable

chmod +x /usr/local/bin/xdebug-toggle

Xdebug installation and configuration

Homebrew does not provide a keg for Xdebug anymore, so you must install Xdebug extension via pecl

pecl channel-update pecl.php.net
pecl install xdebug

xdebug-toggle needs a file called ext-xdebug.ini in brew's php conf.d directory to work, which must contain, at least, the following:

zend_extension="xdebug.so"

Make sure that php.ini doesn't contain this line too.

It's recommended to keep al xdebug config in this file, as an example:

[xdebug]
zend_extension="xdebug.so"

xdebug.var_display_max_depth=24
xdebug.remote_port=9000
xdebug.remote_enable=1
xdebug.remote_connect_back=1

Usage

xdebug-toggle                            # outputs the current status
xdebug-toggle on                         # enables xdebug
xdebug-toggle off                        # disables xdebug
xdebug-toggle on|off --no-server-restart # toggles xdebug without restarting apache or php-fpm

License

LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].