Skip to content
VS Code

xdebug for VS Code

io.github.kpanuragh/xdebug

MCP server for PHP Xdebug debugging with breakpoints, stepping, and variable inspection

client:VS Code transport:stdio runtime:npm

Install xdebug in VS Code

.vscode/mcp.json

{
  "servers": {
    "xdebug": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "xdebug-mcp"
      ]
    }
  }
}

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

xdebug in other clients