Top

Debugging a WebObjects Application


In the previous chapters, you learned the pieces of a WebObjects application and the kinds of methods you need to write. Once you've put together an application, you should debug it to make sure it runs properly. The techniques you use to debug vary according to the languages you've used to write the application.

This chapter describes how to debug WebScript code, Java code, and Objective-C code in a WebObjects application. When you debug, you'll be using the Project Builder application. To learn how to use Project Builder, see the online book WebObjects Tools and Techniques.

Before you debug, it's a good idea to test your installation and verify that it works properly. If you haven't already done so, follow the instructions in the online document Post-Installation Information.

Launching an Application for Debugging
Debugging WebScript
Debugging Java
Debugging Objective-C
Debugging Mixed Applications

Debugging Techniques
Writing Debug Messages
Using Trace Methods
Isolating Portions of a Page

Programming Pitfalls to Avoid
WebScript Programming Pitfalls
Java Programming Pitfalls

First Section