Skip to content

Instantly share code, notes, and snippets.

@dgrammatiko
Created May 31, 2021 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgrammatiko/cc9df2c1163e9c05bb2eb120c0e0b0dc to your computer and use it in GitHub Desktop.
Save dgrammatiko/cc9df2c1163e9c05bb2eb120c0e0b0dc to your computer and use it in GitHub Desktop.

Make sure XDEBUG is enabled

Add in php.ini

[xdebug]
  zend_extension="path/to/xdebug.so"
  xdebug.mode=debug
  xdebug.start_with_request = yes
  xdebug.client_port = 9090
  xdebug.client_host = 127.0.0.1
  ;xdebug.log = "\tmp\xdebug.log"
  xdebug.idekey = VSCODE

VSCODE XDEBUG settings

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
    "name": "Listen for XDebug",
    "type": "php",
    "request": "launch",
    "port": 9090,
    "log": true,
    "xdebugSettings": {
        "max_children": 10000,
        "max_data": 10000,
        "show_hidden": 1
      }
    },
    {
      "name": "Launch currently open script",
      "type": "php",
      "request": "launch",
      "program": "${file}",
      "cwd": "${fileDirname}",
      "port": 9090
    }
  ]
}


@dgrammatiko
Copy link
Author

v1.14.12 is ok
v1.15.1 is broken

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