> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 在 Visual Studio Code 中使用 Azure Functions 调试 CloudScript

> 使用 Azure Functions 扩展从 Visual Studio Code 调试 PlayFab CloudScript Azure Functions,并将日志直接流式传输到终端。

# 教程:在 Visual Studio Code 中使用 Azure Functions 调试 CloudScript

如果你使用的是 Visual Studio Code,可以使用 Azure Functions 扩展列出 Azure Functions 应用程序,其中有一个“Start Streaming Logs”选项:

![在 Visual Studio Code 中使用 Azure Functions 调试 CloudScript 的第 1 步](https://mintcdn.com/microsoft-4404708b/dqv53299jA1M-fNi/images/playfab/live-service-management/service-gateway/automation/cloudscript-af/CloudScript-AF-VSCode-Debug-01.png?fit=max\&auto=format\&n=dqv53299jA1M-fNi\&q=85\&s=b59bd864479f1d8545d38f48bc6b338c)

在函数运行时,日志会显示在 VS Code 的终端窗口中。你也可以在“Logs”下使用“Connect to Log Stream…”选项获得相同的效果:

![在 Visual Studio Code 中使用 Azure Functions 调试 CloudScript 的第 2 步](https://mintcdn.com/microsoft-4404708b/dqv53299jA1M-fNi/images/playfab/live-service-management/service-gateway/automation/cloudscript-af/CloudScript-AF-VSCode-Debug-02.png?fit=max\&auto=format\&n=dqv53299jA1M-fNi\&q=85\&s=20464bf18d50a1c639aeea8cc67d5a7a)


## Related topics

- [使用 Visual Studio 调试 CloudScript Azure Functions](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/debugging-with-CloudScript-AF-VS.md)
- [在 Azure 门户中调试 CloudScript Azure Functions](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/debugging-with-CloudScript-AF-Azure.md)
- [使用 Azure Functions 的 PlayFab CloudScript 快速入门指南](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/quickstart.md)
- [使用 Azure Functions 的 PlayFab CloudScript](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/index.md)
- [使用 Azure Functions 的 Cloudscript 本地调试](https://docs.xbox.com/zh-CN/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/local-debugging-for-cloudscript-using-azure-functions.md)
