Exercise 5.12: Closing the debug session

Before you begin, you must complete Exercise 5.11: Setting watch breakpoints.

To close the debugger:

  1. Click the Resume icon on the Debug toolbar.

    The application waits for input from the 5250-emulation session.

  2. Switch to the 5250 emulation session.
  3. Press F3 to end the job.
  4. A message Program terminated appears:
    Debugger Message
    Click OK.
    Close debug perspective
  5. Right-click the Debug icon on the top right of the workbench.
  6. Click Close on the pop-up menu to close the Debug perspective.

Now you are ready to review your knowledge of this module by taking the quiz. You can also apply what you have learned in this module by completing the practice tasks detailed in More practice.

Quiz

  1. You can start the debugger:
    1. From the Remote Systems view
    2. Launch Configurations window
    3. Both
  2. You can only set breakpoints at executable lines. (T, F)
  3. To set a breakpoint you:
    1. Right-click on the line and click Add Breakpoint on the pop-up menu.
    2. Double-click in the prefix area.
    3. Right-click in the Breakpoints view and click Add Breakpoint on the pop-up menu.
    4. Right-click in the prefix area and click Add Breakpoint on the pop-up menu.
    5. All of the above
  4. You can change variables and indicators in the:
    1. Remote Systems view
    2. Debug view
    3. Monitors view
    4. Source view
    5. All of the above
  5. The debugger allows you to:
    1. Step over a program call
    2. Step into a called program
    3. Both
  6. The Debug view lists all call stack entries. It contains a tree view for each thread. (T, F)
  7. You can perform which actions on breakpoints:
    1. Delete
    2. Add
    3. Disable/Enable
    4. Edit
    5. All of the above
  8. Adding a storage monitor for a variable allows you to view the storage starting with the address where the variable is located. (T, F).
  9. The Storage monitor supports these display formats:
    1. Hexadecimal and text
    2. Character
    3. Text only
    4. Decimal
    5. A and B
  10. A _________ breakpoint provides a notification to a user when a variable changes. It will suspend the execution of the program until an action is taken.
    1. Watch
    2. Line
    3. Conditional

More practice

Given your experience in working with the debugger features, in your own source, try setting, changing, deleting, enabling, disabling line breakpoints, setting watch breakpoints, displaying and changing variables and viewing the call stack as you debug your program. Use the product online help to assist you in these tasks.

Module recap

You have completed Module 5. Debugging a program. You have learned how to:

You have mastered debugging your program and now you learn how to define filters and perform actions. Continue with Module 6: Exploring Remote System Explorer.