无法在 Visual Studio Code 中调试 Azure 函数

问题描述 投票:0回答:1

我正在尝试通过 Visual Code Studio 部署 Azure 函数。我已经创建了一个应用程序,现在我想创建一个时间触发功能。

但是当我尝试部署该功能时,需要开始调试:

enter image description here

当我调试时,它会抛出一个错误,指出命令“func”无法识别,并邀请我打开 launch.json 文件:

enter image description here

错误:

func : Le terme «func» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou 
programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin    
d'accès est correct et réessayez.
Au caractère Ligne:1 : 1
+ func host start
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (func:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

使用 Visual Studio Code 部署 azure 函数

azure visual-studio azure-functions azure-web-app-service azure-storage
1个回答
0
投票

确保您已安装AZURE FUNCTION CORE TOOLS PACKAGE并更新该包。重新启动 VSCOde 并尝试运行它,如果这不起作用,请从网络下载软件包并手动安装。 Azure 功能工具

© www.soinside.com 2019 - 2024. All rights reserved.