{"id":15538336,"url":"https://github.com/w00fz/xdebug-osx","last_synced_at":"2025-03-31T07:09:19.076Z","repository":{"id":20236697,"uuid":"23508709","full_name":"w00fz/xdebug-osx","owner":"w00fz","description":"Simple bash script to toggle xdebug on/off in OSX","archived":false,"fork":false,"pushed_at":"2023-08-21T04:48:21.000Z","size":463,"stargazers_count":274,"open_issues_count":4,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-09T12:23:22.235Z","etag":null,"topics":["homebrew","osx","shell","toggle","xdebug"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/w00fz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-31T07:33:08.000Z","updated_at":"2024-09-04T10:54:47.000Z","dependencies_parsed_at":"2024-10-31T01:01:30.830Z","dependency_job_id":"6df67565-b5bc-453f-ac18-42a68652c6fb","html_url":"https://github.com/w00fz/xdebug-osx","commit_stats":{"total_commits":29,"total_committers":11,"mean_commits":"2.6363636363636362","dds":0.4137931034482759,"last_synced_commit":"263ce9ff1181ef1eaf3c3a4124ed9e2c87e9e702"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w00fz%2Fxdebug-osx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w00fz%2Fxdebug-osx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w00fz%2Fxdebug-osx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w00fz%2Fxdebug-osx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/w00fz","download_url":"https://codeload.github.com/w00fz/xdebug-osx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429487,"owners_count":20775807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["homebrew","osx","shell","toggle","xdebug"],"created_at":"2024-10-02T12:03:16.352Z","updated_at":"2025-03-31T07:09:19.061Z","avatar_url":"https://github.com/w00fz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xdebug Toggler for OSX\n\n![](screenshot.png \"Usage Example\")\n\n[Xdebug][xdebug] is a must have extension for PHP, although the times you don't actually need it, it's a drag.\n\nThis simple script allows to toggle `on` and `off` [Xdebug][xdebug] and is meant for anyone running `PHP` and `Xdebug` installed via [Homebrew][brew].\n\nYou can follow the _OS X Apache Setup_ guide, divided in two parts, to get the perfect MAMP setup on OSX:\n\n* [Part 1: Multiple PHP Versions][tutorial-1]\n* [Part 2: MySQL, APC \u0026 More...][tutorial-2]\n\n\u003e\u003e This script is inspired by the great [sphp][sphp] script. Which I highly suggest to install if you need to switch easily between php versions.\n\u003e\u003e 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\n\n## Quick Installation\n\n```\ncurl -L https://raw.githubusercontent.com/w00fz/xdebug-osx/master/xdebug-toggle \u003e /usr/local/bin/xdebug-toggle\n```\n\n## Installation with clone\n\n```\ngit clone git@github.com:w00fz/xdebug-osx.git\n```\n\nAdd `/usr/local/bin` to your `$PATH`. If you use the Bash shell, you can do this by running this command:\n```\necho 'export PATH=\"/usr/local/bin:$PATH\"' \u003e\u003e $HOME/.bashrc\n```\nYou may need to restart your shell for this to take effect, or refresh it with `source ~/.bashrc`.\n\nIf you want the global command then run:\n```\ncd xdebug-osx\nln -s `pwd`/xdebug-toggle /usr/local/bin/xdebug-toggle\n```\n\n## Make sure `xdebug-toggle` is executable\n\n```\nchmod +x /usr/local/bin/xdebug-toggle\n```\n\n## Xdebug installation and configuration\n\nHomebrew does not provide a keg for Xdebug anymore, so you must install Xdebug extension via pecl\n\n```bash\npecl channel-update pecl.php.net\npecl install xdebug\n```\n\n`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:\n\n```ini\nzend_extension=\"xdebug.so\"\n```\n\nMake sure that `php.ini` doesn't contain this line too.\n\nIt's recommended to keep al xdebug config in this file, as an example:\n\n```ini\n[xdebug]\nzend_extension=\"xdebug.so\"\n\nxdebug.var_display_max_depth=24\nxdebug.remote_port=9000\nxdebug.remote_enable=1\nxdebug.remote_connect_back=1\n```\n\n## Usage\n```\nxdebug-toggle                            # outputs the current status\nxdebug-toggle on                         # enables xdebug\nxdebug-toggle off                        # disables xdebug\nxdebug-toggle on|off --no-server-restart # toggles xdebug without restarting apache or php-fpm\n```\n\n## License\n[LICENSE](LICENSE)\n\n[xdebug]: http://xdebug.org/\n[brew]: http://brew.sh/\n[grav]: http://getgrav.org/\n[tutorial-1]: http://getgrav.org/blog/mac-os-x-apache-setup-multiple-php-versions\n[tutorial-2]: http://getgrav.org/blog/mac-os-x-apache-setup-mysql-vhost-apc\n[sphp]: https://github.com/conradkleinespel/sphp-osx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw00fz%2Fxdebug-osx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw00fz%2Fxdebug-osx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw00fz%2Fxdebug-osx/lists"}