Version: v1.1.1
Platform: macOS arm64 (Apple Silicon)
Command:
magebox xdebug on
Error:
=== Enabling Xdebug ===
PHP version: 8.3
Enabling Xdebug... sed: 1: "/opt/homebrew/etc/php/8 ...": extra characters at the end of h command
✗ failed
Error: failed to enable Xdebug: failed to enable xdebug: exit status 1
Cause:
macOS uses BSD sed, which requires an explicit extension argument for in-place editing (sed -i '' ...), while the command seems to use GNU sed syntax (sed -i ...).
Workaround:
Manually edit /opt/homebrew/etc/php/8.3/php.ini to include the xdebug.mode=debug, etc.