15.07.2013 Views

jgrasp handbook

jgrasp handbook

jgrasp handbook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 The Integrated Debugger<br />

DRAFT, February 18, 2003, Page 62<br />

Your skill set for writing programs would not be complete without knowing how to use a debugger. While<br />

the connotation of a debugger is that its purpose is to assist in finding bugs, it can also be used as a<br />

general aid for understanding your program as you develop it. jGRASP provides a highly visual debugger<br />

for Java, which is tightly integrated with the Desktop and which includes all of the traditional features<br />

expected in a debugger.<br />

If the example program used in this section is not available to you, or if you do not understand it, simply<br />

substitute your own program in the discussion.<br />

6.1 Preparing to Run the Debugger<br />

In preparation to use the debugger, click Compiler on the menu of the CSD Window to be sure Debug<br />

Mode is checked as illustrated in Figure 47. If the box in front of Debug Mode is not checked, click on the<br />

Figure 47. Setting the compiler to Debug Mode

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!