Chapter 15

Testing and Debugging Windows 8 Applications


  • Understanding software quality and its importance
  • Understanding the basics of the debugging process
  • Getting to know the Windows Simulator and test the applications using it
  • Understanding what unit testing is and how you can use it to create high-quality applications


You can find the code downloads for this chapter on the Download Code tab at The code is in the download and individually named, as described in the corresponding exercises.

In this chapter, you learn why it is important to create high-quality software, and how to do it. This chapter begins with a look at how to find the root causes of malfunctions in your code. You learn about the tools you can use to make this process easier and more straighforward. You also learn how to write additional code to test your application logic to make sure that your code behaves exactly the way it should. By the end of this chapter, you should have a solid understanding of the principles and techniques of maintaining a high-quality codebase for your Windows 8 style applications.

The Quality of Your Software

When you are writing code, you will inevitably make mistakes. Everyone makes mistakes — even professional developers with many years of coding experience. The only difference is that with experience you can reduce the number of those mistakes. ...

Get Beginning Windows 8 Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.