Add vscode config for debugging the worker (#701)

This commit is contained in:
Lilian Kasem 2021-11-05 13:36:10 -07:00 коммит произвёл GitHub
Родитель 55fb171cb7
Коммит 15299c06e3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 81 добавлений и 0 удалений

11
.vscode/launch.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to .NET Functions",
"type": "coreclr",
"request": "attach",
"processId": "${command:azureFunctions.pickProcess}"
}
]
}

70
.vscode/tasks.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,70 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "clean (functions)",
"command": "dotnet",
"args": [
"clean",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile"
},
{
"label": "build (functions)",
"command": "dotnet",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean (functions)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile"
},
{
"label": "clean release (functions)",
"command": "dotnet",
"args": [
"clean",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile"
},
{
"label": "publish (functions)",
"command": "dotnet",
"args": [
"publish",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean release (functions)",
"problemMatcher": "$msCompile"
},
{
"label": "runFunctionsHost",
"type": "shell",
"dependsOn": "build (functions)",
"options": {
"cwd": "${workspaceFolder}/samples/FunctionApp/bin/Debug/net5.0"
},
"command": "func host start",
"isBackground": true,
"problemMatcher": "$func-dotnet-watch"
}
]
}