J. Using the Debugger


In this appendix you’ll learn:

• To set breakpoints to debug applications.

• To use the run command to run an application through the debugger.

• To use the stop command to set a breakpoint.

• To use the cont command to continue execution.

• To use the print command to evaluate expressions.

• To use the set command to change variable values during program execution.

• To use the step, step up and next commands to control execution.

• To use the watch command to see how a field is modified during program execution.

• To use the clear command to list breakpoints or remove a breakpoint.

And so shall I catch the fly.

William Shakespeare

We are built to make mistakes, coded for error.

Lewis Thomas

What we anticipate ...

Get Java™ for Programmers: Deitel now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.