Skip to content

Instantly share code, notes, and snippets.

@afragen
Last active January 11, 2023 22:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afragen/0e322c8d05d4e3dc0906982005233fc3 to your computer and use it in GitHub Desktop.
Save afragen/0e322c8d05d4e3dc0906982005233fc3 to your computer and use it in GitHub Desktop.
Stuff for xDebug 3.x and Local
; Add to all lightning services PHP conf files using xDebug 3.x
xdebug.mode=debug
xdebug.client_port=9003
xdebug.start_with_request=trigger
xdebug.discover_client_host=yes
xdebug.idekey=VSCODE
; Add to all lightning services PHP conf files using xDebug 2.x
xdebug.remote_enable=1
xdebug.remote_connect_back=Off
xdebug.remote_port="9000"
xdebug.profiler_enable=0
xdebug.idekey=VSCODE
// Launch
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug 3.x",
"type": "php",
"request": "launch",
"port": 9003,
"xdebugSettings": {
"max_children": 128,
"max_data": 1024,
"max_depth": 3,
"show_hidden": 1
}
},
{
"name": "Listen for xDebug 2.x",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"": "${workspaceFolder}"
},
"xdebugSettings": {
"max_children": 128,
"max_depth": 3,
"max_data": 1024,
"show_hidden": 1,
}
},
{
"name": "Listen for xDebug 2.x ('wp' subdir)",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"": "${workspaceFolder}/wp"
},
"xdebugSettings": {
"max_children": 128,
"max_depth": 3,
"max_data": 1024,
"show_hidden": 1,
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment