Skip to content

magebox xdebug on fails with sed syntax error on macOS #2

@TrinosMarten

Description

@TrinosMarten

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions