Programming for the Newton using Macintosh, 2nd ed.

Debugging Your Application

Calamity is virtue's opportunity.

--Seneca

Without the proper tools and techniques for debugging, application development would be a nightmare. While the debugging tools for the Newton are modest in number, they are nevertheless quite useful. You can do everything from snooping around inside a running application (including accessing all of its views and data) to looking in functions with errors. Further, because the Newton is interactive, you have immediate access to your code.

This chapter will discuss most of these important debugging tools and techniques and help clarify how you will use these tools in your own application development. Let us begin with the single most essential tool, the Inspector.

The Inspector
Printing
Tracing
Debugging Functions
NS Debug Tools
Exceptions
The Debugging Process
Examples
Exercises
Summary

An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996