Skip to content

Instantly share code, notes, and snippets.

@feryardiant
Created May 24, 2024 08:51
Show Gist options
  • Save feryardiant/68d878b727cc35e3b55dec4b5f49d3fb to your computer and use it in GitHub Desktop.
Save feryardiant/68d878b727cc35e3b55dec4b5f49d3fb to your computer and use it in GitHub Desktop.
VS Code launch.json to start artisan serve with xdebug enabled
{
// 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": "Artisan Serve",
"type": "php",
"request": "launch",
"program": "${workspaceRoot}/artisan",
"args": ["serve", "--host", "0.0.0.0"],
"cwd": "${workspaceRoot}",
"port": 9003,
"serverReadyAction": {
"pattern": "Server running on \\[http://0.0.0.0:([0-9]+)\\].",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
},
"env": {
"XDEBUG_SESSION": "vscode"
}
},
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment