1 / 32

Debugging connected Windows 8 apps

TOOL-588T. Debugging connected Windows 8 apps. Raghu Gatta Principal Development Lead Microsoft Corporation. Agenda. Debugging and troubleshooting ‘connected apps’ Common problems encountered in networking apps Tools available to debug connected apps

avak
Download Presentation

Debugging connected Windows 8 apps

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TOOL-588T Debugging connected Windows 8 apps Raghu Gatta Principal Development Lead Microsoft Corporation

  2. Agenda • Debugging and troubleshooting ‘connected apps’ • Common problems encountered in networking apps • Tools available to debug connected apps You’ll leave knowing how to debug network problems • Using Windows and Visual Studio to debug faster • Using tools you already know

  3. Debugging and troubleshooting made easyto deliver great Metro style connected apps • These tools will help you debug faster: ship faster • These tools will help you focus on your app rather than on arcane network details • This tools will help you create more robust apps

  4. What is a good “connected” Metro style app? • Simple for you while delighting your users • Eliminate the bill shock surprise factor • Users feel safer trying new apps

  5. Common networking problems

  6. Common problems App bugs Network problems Connection timeouts Connection resets Difference in network topologies Bad names and other DNS name resolution failures Missing capabilities Bad HTTP headers are sent Incorrect use of completion handlers in UI threads

  7. Tools available to debug connected apps • Visual Studio 11 Express • CheckNetIsolation • Fiddler • Event Tracing for Windows (ETW) • Netmon

  8. Tools: Visual Studio

  9. Using Visual Studio • Visual Studio provides integration with the Windows Runtime networking APIs • IntelliSense describes network specific details • Rich network error reporting

  10. demo Visual Studio: debugging DNS errors

  11. demo Visual Studio: finding capability problems

  12. Tools: CheckNetIsolation

  13. Using CheckNetIsolation • CheckNetIsolation helps you determine proper network capabilities • There is no need to open firewall rules for Metro style apps

  14. demo CheckNetIsolation: finding specific missing or excessive capabilities

  15. Tools: Fiddler

  16. Using Fiddler • Used for debugging HTTP traffic • CheckNetIsolation can also help set the environment to use Fiddler • Some times headers have valuable information, useful when identifying a problem

  17. demo Fiddler: Debugging HTTP

  18. Fiddler setup • Fiddler options, connections tab • Enable “Allow Remote Computers to Connect” • From elevated cmd prompt • CheckNetIsolationLoopbackExempt –a –n=[Package Family Name]

  19. Tools: Event Tracing for Windows

  20. Using ETW • Sometimes problems are hard to reproduce, can’t be stepped through using the debugger • Might happen in elaborate situations • We need a record of the history of the events

  21. demo ETW: debugging hard to repro problems

  22. Tools: Netmon

  23. Using Netmon • Sometimes to understand a problem we have understand how data is sent and what is really sent, over the wire

  24. demo Netmon: debugging advanced low level networking details

  25. Review

  26. Windows and Visual studio provide tools to help you debug faster, to enable you to create great Metro style connected apps.

  27. Windows enables you to use the tools you already know to debug your Metro style connected apps.

  28. Related sessions • [PLAT-785T] Creating connected apps that work on today's networks • [PLAT-580T] Building Windows Runtime sockets apps

  29. Further reading and documentation • Performance • Tools for Metro style app development • Debugging and testing Metro style apps • Analyzing the code quality of Metro style apps • http://www.fiddler2.com/fiddler2/ • http://blogs.technet.com/b/netmon/p/downloads.aspx

  30. thank you Feedback and questions http://forums.dev.windows.com Session feedbackhttp://bldw.in/SessionFeedback

  31. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related