Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make some DDEV custom commands available inside the web container #6574

@rfay

Description

@rfay

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Some people work inside the web container, for example with VS Code's "Remote Explorer" and Devcontainers setup, @ultimike teaches this approach in his classes. It's nice, because you're directly on the "server" instead of using ddev commands to filter in there. (It's almost the same as ddev ssh of course.)

However, he teaches people to use the undocumented enable_xdebug and disable_xdebug commands, for example.

Describe your solution

Some ddev custom commands work great inside the container. xdebug is one of these:

sudo ln -s /mnt/ddev-global-cache/global-commands/web/xdebug /usr/local/bin/xdebug for example, will make an xdebug command work inside container just like it works outside (except without ddev)

This doesn't work with xhprof or wp because those namespaces are already claimed.

It's not needed for drush or php, which are already in the path as is.

Describe alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions