Skip to content

How to specify PHP Xdebug extension in VSCode? #905

Description

@Loki3000

PHP version: 8.2.7
Xdebug version: 3.2.1
VS Code extension version: 1.32.1

Your launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003
        },
        ...
    ]
}

I have two installed extensions: xdebug.php-debug and devsense.phptools-vscode. Both support PHP debugging.

How can I specify which one to use for debugging?

If both are enabled, every debug session is caught by devsense.phptools-vscode, but I prefer to use xdebug.php-debug for debugging.

If devsense.phptools-vscode is disabled, - everything works well, and step-debugging works through xdebug.php-debug.

Unfortunately, I need devsense.phptools-vscode enabled for other functions.

Is there a way to specify which extension to use for debugging?

Perhaps it's possible to set extension priority or something similar?

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