chore: add some files
This commit is contained in:
56
.vscode/launch.json
vendored
Normal file
56
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Listen for Xdebug (Docker)",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9003,
|
||||
"pathMappings": {
|
||||
"/var/www/html": "${workspaceFolder}/src/app"
|
||||
},
|
||||
"ignore": [
|
||||
"**/vendor/**/*.php"
|
||||
],
|
||||
"log": true,
|
||||
"externalConsole": false,
|
||||
"serverReadyAction": {
|
||||
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
|
||||
"uriFormat": "http://localhost:%s",
|
||||
"action": "openExternally"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch currently open script",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"cwd": "${fileDirname}",
|
||||
"port": 9003,
|
||||
"runtimeArgs": [
|
||||
"-dxdebug.start_with_request=yes"
|
||||
],
|
||||
"env": {
|
||||
"XDEBUG_CONFIG": "client_host=host.docker.internal client_port=9003",
|
||||
"XDEBUG_MODE": "debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Debug ThinkPHP Command",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/src/app/think",
|
||||
"args": [
|
||||
"your:command"
|
||||
],
|
||||
"cwd": "${workspaceFolder}/src/app",
|
||||
"port": 9003,
|
||||
"env": {
|
||||
"XDEBUG_CONFIG": "client_host=host.docker.internal client_port=9003"
|
||||
},
|
||||
"pathMappings": {
|
||||
"/var/www/html": "${workspaceFolder}/src/app"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user