https://github.com/devilbox/xdebug
Xdebug tools for the Devilbox
https://github.com/devilbox/xdebug
docker macos osx plist xdebug
Last synced: 18 days ago
JSON representation
Xdebug tools for the Devilbox
- Host: GitHub
- URL: https://github.com/devilbox/xdebug
- Owner: devilbox
- Created: 2018-07-12T20:39:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T20:52:24.000Z (almost 7 years ago)
- Last Synced: 2025-05-12T23:42:29.357Z (about 2 months ago)
- Topics: docker, macos, osx, plist, xdebug
- Homepage: http://devilbox.org
- Size: 1000 Bytes
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Xdebug
## MacOS
In order for Xdebug to work on Docker for MacOS, the container needs a well known IP address
for its Xdebug remote host. To circumvent the Docker installation on MacOS, an additional
alias is required to have a fixed IP address.This can be either done manually and only persists until a reboot or via a boot persistent
plist script.### Manual
```bash
sudo ifconfig lo0 alias 10.254.254.254
```### Boot persistent
##### Install
```bash
sudo curl -o \
/Library/LaunchDaemons/org.devilbox.docker_10254_alias.plist \
https://raw.githubusercontent.com/devilbox/xdebug/master/osx/org.devilbox.docker_10254_alias.plist
```
##### Enable without reboots
```bash
sudo launchctl load /Library/LaunchDaemons/org.devilbox.docker_10254_alias.plist
```### Credits
https://gist.github.com/ralphschindler/535dc5916ccbd06f53c1b0ee5a868c93