Skip to content

Instantly share code, notes, and snippets.

@esedic
Last active December 16, 2025 21:26
Show Gist options
  • Select an option

  • Save esedic/968273ba08771223cabc66f531b54b21 to your computer and use it in GitHub Desktop.

Select an option

Save esedic/968273ba08771223cabc66f531b54b21 to your computer and use it in GitHub Desktop.
Joomla debugging with XDebug and Visual Studio Code on Windows

Xdebug Setup for Joomla and VS Code on Windows

Step 1: Install Xdebug

  1. Copy phpinfo() output and paste it into Xdebug Wizard.
  2. Download xdebug.dll.
  3. Copy the DLL to your PHP ext folder.
  4. Add the following configuration to your php.ini:
[xdebug]
zend_extension = xdebug
xdebug.mode = develop,debug
xdebug.start_with_request = yes
xdebug.client_host = 127.0.0.1
xdebug.client_port = 9003
xdebug.var_display_max_depth = 5
xdebug.var_display_max_children = 256
xdebug.var_display_max_data = 1024
xdebug.cli_color = 1
xdebug.overload_var_dump = 1

Step 2: Install VS Code Extensions

  • PHP Intelephense
  • PHP Debug (Xdebug)
  • EditorConfig
  • DotENV

Step 3: Configure VS Code for Joomla

In your Joomla root folder, create a .vscode folder with the following files:

1. launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Listen for Xdebug",
      "type": "php",
      "request": "launch",
      "port": 9003,
      "pathMappings": {
        "C:/laragon/www/joomla5": "${workspaceFolder}"
      }
    }
  ]
}

2. settings.json

{
  "intelephense.environment.includePaths": [
    "libraries",
    "administrator"
  ],
  "intelephense.phpVersion": "8.1",
  "intelephense.diagnostics.undefinedTypes": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment