Setting the program counter

To set the program-counter value:

  1. Initiate a debugging session.
  2. In the Editor area, place the cursor on the line you want the debugger to execute.
  3. Right-click the line and choose Move To Line from the shortcut menu.

    The debugger moves the program counter to the location you specified. The Editor area shows the new location.

    CAUTION:
    Changing the program-counter value can cause your program to malfunction. For example, if you set the program counter outside the address range of the current function, the processor will skip the instructions that clean up the stack and return execution to the correct place in the calling function. Your program will then behave in an unpredictable way.