O'Reilly logo

Java™ for Programmers: Deitel Developer Series, Second Edition by Harvey Deitel - Deitel & Associates, Inc., Paul Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix F. Using the Debugger

And so shall I catch the fly.

William Shakespeare

We are built to make mistakes, coded for error.

Lewis Thomas

What we anticipate seldom occurs; what we least expect generally happens.

Benjamin Disraeli

Objectives

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required