Skip to content

Enable debugging in VS Code #4

Description

@joemaller

What needs to happen to expose the Xdebug debugger to VS Code?

Will probably need to add the port to the docker-compose files:

    # Internally expose port 9003 for XDebug and profiling
    expose:
      - 9003

Also modify any package.json scripts to use --service-ports like this:

"scripts": {
    "test": "docker compose run --rm --service-ports test"
}

The PHP Debug extension from xdebug.org has additional instructions.

Activity

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

Metadata

Metadata

Assignees

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