Fixing Bugs
In this section we'll look at how to debug and bug fix an application. Often during the user testing, or predeployment stage, you will find bugs that have been brought to your attention. If you're lucky this will be before you launch your site or application.
So, we'll look at some techniques to isolate and fix these problems.
Tightening Validation Rules
Remember that when we developed the object model for the online forum, we relaxed the validation policy to allow null for most attributes.
In particular, there are some attributes that we really shouldn't allow null. A topic without a name is meaningless. Similarly, a post ought to have a message.
So, open the model files from the framework project and uncheck the allows null setting ...
Get WebObjects® Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.