In Practice

The following debug tutorial helps you gain experience using JBuilder’s debugger. We cannot stress enough how important it is to learn the features of the debugger. Debugging is really about making the coding environment find the error for you.

The application we have written takes user input of food items and adds them to a JList list box. Although this seems simple enough, it is filled with syntax and runtime errors.

We will take you through debugging compile-time errors, runtime errors, and logic errors.

Step 1: Opening the Debugging Example Project

In this step, you open the example project and the source code file that contains errors.

To open the example project

1.
Select File, Open Project from the JBuilder menu.
2. ...

Get Borland® JBuilder™ 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.