小编Dya*_*n S的帖子

无法在 VS Code IDE 中调试 Python Azure 函数。获取连接 ECONNREFUSED 127.0.0.1:9091 错误

我正在尝试使用 VS code IDE 调试 Azure 函数 python 代码。
Local.settings.json 使用以下配置更新

"AzureWebJobsStorage": "UseDevelopmentStorage=true"
Run Code Online (Sandbox Code Playgroud)

到目前为止我尝试过的事情:-

  • 我重新安装了VS代码,
  • 将 Azure Function Core 工具从 4.0 降级到 3.0
  • 任何解决这个问题的指示都会非常有帮助。

以下是尝试调试用 Python 编写的 Azure 函数时 VS Code IDE 上的错误:

在此输入图像描述

下面的Host.json

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[2.*, 3.0.0)"
  },
  "functionTimeout": "20:00:00",
  "extensions": {
    "durableTask": {
      "maxConcurrentActivityFunctions": 1
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

下面是launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Python …
Run Code Online (Sandbox Code Playgroud)

visual-studio-code azure-functions azure-functions-runtime azure-functions-core-tools azurite

7
推荐指数
1
解决办法
9706
查看次数