Other Execution Change Commands

In addition to stepping into, over, and out of code, you can use other commands to change execution within your application. One option is Run To Cursor. To run this command, right-click a line of code that exists after the current breakpoint, and then select Run To Cursor in the shortcut menu. This command executes all code that exists between the breakpoint and the target line of code. The debugger then stops at the target line. It literally runs all the code up to the cursor location.

Another option is Set Next Statement. Again, you can call this command by right-clicking a line of code and then selecting Set Next Statement in the shortcut menu. This time, the code that exists between the breakpoint and the target line of code is ignored, and only the target line is executed. This command is useful for skipping identified errors in your code without having to restart execution.

0 0

Post a comment