gpt4 book ai didi

azure-functions - VS Code 多个项目中的 Azure Functions

转载 作者:行者123 更新时间:2023-12-05 06:12:25 28 4
gpt4 key购买 nike

所以我得到了一个包含 4 个 C# azure 函数项目的解决方案。我想知道如何为每个功能项目配置调试设置。

我一次只能找到一种方法,每次我想测试不同的 Function 项目时都需要更改 settings.json。 enter image description here

更不用说这在我尝试一次调试多个函数应用程序时没有帮助(尝试复制 Visual Studio 多个启动项目)。

除了回到 Visual Studio 之外还有什么建议吗?哈哈

最佳答案

  • 对于您的情况,您需要的是 Add configurationslaunch.json 文件中,而不是在 settings.json 中。您可以像您所做的那样使用 settings.json 更改 projectSubpath 以满足您的需要。

以下是调试配置的步骤和引用:

1. 启动多个调试 session 的另一种方法是使用复合启动配置。您需要使用 compounds 修改 launch.json 文件像这样手动: enter image description here

2. 配置完成后,您可以像在 Visual Studio 中一样单击“调试”按钮来调试您的函数。 enter image description here

关于azure-functions - VS Code 多个项目中的 Azure Functions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63641361/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com