To change the program-counter value:
- Initiate a debugging session.
- In the editor view, place the cursor on the line you want the debugger to execute.
- Right-click on the line and choose Move To Line from the shortcut menu.
The debugger moves the program counter to the location you specified. The editor view shows the new location.
CAUTION:
Changing the program-counter value because doing so 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.