Learn to use Visual Studio, Visual Studio Online, Application Insights and Team Foundation Server to decrease rework, increase transparency into your application and increase the rate at which you can ship high quality software throughout the application lifecycle
Visual Studio 2013 Update 2 introduced several exciting changes for mobile development. You are now able to use the same programming model that you use to build Windows Store apps for Windows 8.1, to build XAML apps Windows Phone 8.1.
In this post, I will remind you of the most important diagnostic capabilities that you will know from Windows Store apps development, that now apply to Windows Store apps on Windows Phone 8.1. You can find many existing Store App resources from the Windows Dev Center.
Suspend, Resume, and Suspend and Shutdown App Model
Windows Store apps have several execution states that it can be running under. You can read more details about it from the Application Lifecycle MSDN documentation
While programming your app, you may want to take these state changes into consideration for your app’s design. To test the functionality, you can trigger these state changes from Visual Studio using the Debug Location Toolbar.
1. While debugging, right click and select Debug Location from the list of toolbars.
2. Select the Lifecycle Event to trigger from the dropdown
Async calls aggregate together in the callstack window
Our blog post about using the callstack window to debug async code elaborates more about how to use this. Following the example illustrated in the linked blog entry, you can see that async calls are shown in the Call Stack window.
See detailed information on Async Tasks in the Tasks Window
You are also able to see all async tasks that have been awaited in the Tasks window. You can learn more about asynchronous calls and how to debug them from our blog post.
Return values for functions shown in the Autos Window
This functionality was introduced in Visual Studio 2013 for .NET projects. Now for phone .NET projects, you will also see return values of functions referenced on the current and previous line.
Create minidumps with heap from a Phone app
While stopped in the debugger, you can grab a minidump or a minidump with heap of your app. A minidump captures the current state (like a crash) and is extremely useful for sharing an issue to another member of your team. The heap information is useful for running memory analysis of your app to find and diagnose memory issues.
Debug crash minidumps and perform memory analysis on heaps
Using the minidump captured from Save Dump As or from a crash report, you are able to open that dump in Visual Studio to debug. Using a minidump with heap, you are also able to inspect the memory snapshot of your app to diagnose memory leaks and other memory issues. You can learn more about how to utilize dump debugging to diagnose memory issues in our blog.
Stepping between Managed and Native boundaries works with a interop debugger
Basic debugging support for Html/JS Store apps
Diagnose mobile websites on the phone or emulator
Profiling tools are used to help discover and fix performance issues like a slow or unresponsive app. These tools are found under the Performance and Diagnostics (Alt-F2) found under the Debug or Analyze menu. Haseeb Ahmed has posted a comprehensive post about Phone Profiling for a more detailed overview.