Debugging windows

When a program reaches a breakpoint, the development system enters debug mode, and displays the following:

  1. Breakpoint control buttons. We will focus on three of these which allow us to continue execution normally (a), stop debugging (b), and execute a single instruction at a time (c) while observing the values of variables as they change.
  2. Code window, highlighting the instruction we have paused at.
  3. Watch window, in which we can observe the changing values of selected variables.
  4. Immediate window, in which we can both observe and change variable values while execution is paused.

Note that the bottom two panels have several tabs, and we have selected the Watch 1 and Command Window - Immediate windows. You will find these most useful for debugging the relatively small programs we are writing while learning basic programming concepts.

If the Watch and Command windows are not visible, use the Debug menu (while debugging) to display them:

debug > windows > immediate
debug > windows > watch > watch1


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.