Skip to content

Instantly share code, notes, and snippets.

@totoprayogo1916
Created June 24, 2022 03:22
Show Gist options
  • Save totoprayogo1916/3c8d332d942f02e2076e33b8907d1a9d to your computer and use it in GitHub Desktop.
Save totoprayogo1916/3c8d332d942f02e2076e33b8907d1a9d to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "Spark Serve",
"type": "php",
"request": "launch",
"program": "${workspaceFolder}/spark",
"cwd": "${workspaceRoot}",
"args": ["serve", "-port", "4562" ],
"port": 4562,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
},
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:4562"
],
"program": "",
"cwd": "${workspaceRoot}/public",
"port": 4562,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment