Skip to content

Instantly share code, notes, and snippets.

@zacktagnan
Created April 27, 2024 11:44
Show Gist options
  • Save zacktagnan/b436eea3d3a3cf69ccee263b821591b7 to your computer and use it in GitHub Desktop.
Save zacktagnan/b436eea3d3a3cf69ccee263b821591b7 to your computer and use it in GitHub Desktop.
Config block to debug by Xdebug on Visual Studio Code (put inside ".vscode" project's directory)
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"log": false,
"externalConsole": false,
"pathMappings": {
"/var/www/html": "${workspaceFolder}"
},
"ignore": [
"**/vendor/**/*.php"
],
"port": 9003,
// optional block
"xdebugSettings": {
"max_data": 65536,
"show_hidden": 1,
"max_children": 100,
"max_depth": 3
},
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment