Created
May 24, 2024 08:51
-
-
Save feryardiant/68d878b727cc35e3b55dec4b5f49d3fb to your computer and use it in GitHub Desktop.
VS Code launch.json to start artisan serve with xdebug enabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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