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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"php.validate.executablePath": "/usr/bin/php",
|
||||
"php.validate.run": "onSave",
|
||||
"debug.onTaskErrors": "showErrors",
|
||||
"debug.internalConsoleOptions": "openOnSessionStart",
|
||||
"debug.javascript.autoAttachFilter": "onlyWithFlag",
|
||||
|
||||
// PHP 智能提示
|
||||
"php.suggest.basic": true,
|
||||
"editor.quickSuggestions": {
|
||||
"strings": true
|
||||
},
|
||||
|
||||
// 文件排除
|
||||
"files.exclude": {
|
||||
"**/vendor": true,
|
||||
"**/runtime": true,
|
||||
"**/.git": true,
|
||||
"**/node_modules": true
|
||||
},
|
||||
|
||||
// 远程开发设置
|
||||
"remote.extensionKind": {
|
||||
"ms-vscode-remote.remote-containers": "ui"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user