Skip to content

Every php executable produces multiple Xdebug warnings #902

@artm

Description

@artm

When using PHP CLIs inside the dev container they produce multiple warnings like:

Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port).

The CLIs work as intended, but the warnings make the CLI experience uncomfortable, especially when repeated 20 times after the normal output of a utility.

As I understand the image enables Xdebug functionality so user's own PHP code can be debugged with F5. I know I won't be doing that, what is the best way to disable it in a dev container?

I tried to add

  "remoteEnv": {
    "XDEBUG_CONFIG": "mode=off"
  },

to devcontainer.json but it has no effect.

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