Exercise 1: Starting a Debugging Session

This exercise shows how to start debugging the Blink project. If you haven't yet created and built the Blink project, you should do so now using the instructions in Creating the Blink Project.
  1. Check the project manager for the name of the current project.
    The Blink.java file should be displayed in the source editor. If the current project is not Blink, double-click on the Blink project name.
  2. Click the Restart button on the Edit/Debug toolbar.
    The execution of Blink.java begins. And Java WorkShop executes the Blink project in the Applet Viewer window.

While Blink.java is running, you can set a breakpoint by choosing Debug -> Breakpoints. You can also suspend the program by choosing Debug -> Interrupt Program.

Next lesson:

Exercise 2: Setting a Breakpoint