Skip to content

Xdebug command fails on composable images #152

Description

@jchaffer

The upsun xdebug command fails on projects that have been updated to the new composable image syntax, because the YAML structure has changed and the command looks only for the old syntax.

Before:

runtime:
  extensions:
    ...
  xdebug:
    idekey: <my_key>

After:

stack:
  runtimes:
    - 'php@8.4':
        extensions:
          ...
        xdebug:
          idekey: <my_key>

In the command, the path to the idekey is fixed:

// legacy/src/Command/Environment/EnvironmentXdebugCommand.php, line 89
$ideKey = $config['runtime']['xdebug']['idekey'] ?? '';

This needs to be updated to also look for the idekey nested inside stack. The rest of the code works unchanged in either scenario.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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