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

He can run but he can’t hide.

Joe Louis

It is one thing to show a man that he is in error, and another to put him in possession of truth.

John Locke

Objectives

In this appendix you will 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 ...

Get Java™ How to Program, Seventh Edition 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.