> ## 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 的終端機視窗中。您也可以使用 Connect to Log Stream… 選項，在 Logs 下取得相同的內容：

![使用 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

- [在 Azure 入口網站中偵錯 CloudScript Azure Functions](https://docs.xbox.com/zh-TW/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/debugging-with-CloudScript-AF-Azure.md)
- [使用 Visual Studio 偵錯 CloudScript Azure Functions](https://docs.xbox.com/zh-TW/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/debugging-with-CloudScript-AF-VS.md)
- [使用 Azure Functions 的 PlayFab CloudScript 快速入門指南](https://docs.xbox.com/zh-TW/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/quickstart.md)
- [使用 Azure Functions 的 Cloudscript 本機偵錯](https://docs.xbox.com/zh-TW/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/local-debugging-for-cloudscript-using-azure-functions.md)
- [使用 Azure Functions 的 PlayFab CloudScript](https://docs.xbox.com/zh-TW/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/index.md)
