偵錯、測試及效能Debugging, testing, and performance

本節說明如何使用 Microsoft Visual Studio 來偵錯、測試及最佳化您的應用程式。This section shows you how to use Microsoft Visual Studio to debug, test, and optimize your app. 它也包含 Windows 裝置入口網站 (適用於裝置監視和設定) 和 Windows 應用程式認證套件 (用以針對 Microsoft Store 準備您的應用程式) 等工具。It also includes tools like the Windows Device Portal (for device monitoring and configuration) and the Windows App Certification Kit (to prepare your app for the Microsoft Store).

主題Topic 說明Description
部署和偵錯 UWP 應用程式Deploying and debugging UWP apps 本文會引導您完成以各種部署和偵錯目標為目標的步驟。This article guides you through the steps to target various deployment and debugging targets.
處理程序生命週期管理 (PLM) 的測試與偵錯工具Testing and debugging tools for Process Lifetime Management (PLM) 用來偵錯和測試您 App 如何使用處理程序生命週期管理的工具及技術。Tools and techniques for debugging and testing how your app works with Process Lifetime Management.
使用適用於 Windows 10 行動裝置版的 Microsoft 模擬器進行測試Test with the Microsoft Emulator for Windows 10 Mobile 使用「適用於 Windows 10 行動裝置版的 Microsoft 模擬器」隨附的工具來模擬與裝置的實際互動,以及測試應用程式的功能。Simulate real-world interaction with a device and test the features of your app by using the tools included with Microsoft Emulator for Windows 10 Mobile. 模擬器是模擬執行 Windows 10 之行動裝置的傳統型 app。The emulator is a desktop application that emulates a mobile device running Windows 10. 它提供虛擬化環境,讓您可以在其中針對 Windows app 進行偵錯與測試,而不需要擁有實體裝置。It provides a virtualized environment in which you can debug and test Windows apps without a physical device. 它也提供隔離的環境供您的應用程式原型使用。It also provides an isolated environment for your application prototypes.
使用 Visual Studio 測試 Surface Hub應用程式Test Surface Hub apps using Visual Studio Visual Studio 模擬器提供了可讓您設計、開發、偵錯和測試通用 Windows 平台 (UWP) app (包括針對 Microsoft Surface Hub 建置的應用程式) 的環境。The Visual Studio simulator provides an environment where you can design, develop, debug, and test Universal Windows Platform (UWP) apps, including apps that you have built for Microsoft Surface Hub. 此模擬器不會使用與 Surface Hub 相同的使用者介面,但很適合以 Surface Hub 的畫面大小與解析度測試您應用程式的外觀和行為。The simulator does not use the same user interface as Surface Hub, but it is useful for testing how your app looks and behaves at the Surface Hub's screen size and resolution.
透過鬆散檔案註冊部署應用程式Deploy an app through loose file registration 本指南說明如何使用鬆散檔案配置來驗證及共用 Windows 10 應用程式,而不需加以封裝。This guide shows how to use the loose file layout to validate and share Windows 10 apps without needing to package them.
搶鮮版 (Beta) 測試Beta testing 搶鮮版 (Beta) 測試可讓您有機會根據您 App 開發小組以外的個人所提供的意見反應,改進您的 App,這些個人會在他們自己的裝置上試用您尚未發行的 App。Beta testing gives you the chance to improve your app based on feedback from individuals outside of your app-development team who try your unreleased app on their own devices.
Windows 裝置入口網站Windows Device Portal Windows Device Portal 能讓您從遠端透過網路或 USB 連線來設定及管理您的裝置。The Windows Device Portal lets you configure and manage your device remotely over a network or USB connection.
Windows 應用程式認證套件Windows App Certification Kit 為了讓您的應用程式能順利在 Microsoft Store 上發行或成為 Windows 認證,請在送出以進行認證之前,先在本機進行驗證和測試。To give your app the best chance of being published on the Microsoft Store, or becoming Windows Certified, validate and test it locally before you submit it for certification. 本主題示範如何安裝和執行 Windows 應用程式認證套件。This topic shows you how to install and run the Windows App Certification Kit.
效能Performance 使用者會期望其 app 保持回應性,並可自在地使用,而不會耗盡電池。Users expect their apps to remain responsive, to feel natural, and not to drain their battery. 在技術上來說,效能是非功能的需求,但是將效能視為功能可協助您滿足使用者的期望。Technically, performance is a non-functional requirement but treating performance as a feature will help you deliver on your users' expectations. 指定目標和測量是主要因素。Specifying goals, and measuring, are key factors. 決定您的效能關鍵案例是什麼;定義良好效能代表什麼意義。Determine what your performance-critical scenarios are; define what good performance mean. 然後在整個專案週期中及早並經常進行測量,以確保您能夠達成目標。Then measure early and often enough throughout the lifecycle of your project to be confident you'll hit your goals.
版本調適型應用程式Version adaptive apps 運用最新 API 及功能,而同時又盡可能深入最廣大的客戶群。Take advantage of the latest APIs and features while still reaching the broadest possible audience. 使用執行階段 API 檢查,以在執行階段配合應用程式執行所在 Windows 10 版本可用的功能,自動調整您的程式碼和 XAML。Use runtime API checks to adapt your code and XAML at runtime to the features available on the version of Windows 10 where your app is running.