Share via


Setting the Next Statement to Execute

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/27/2008

You can choose the next statement to execute while the debugger is a break state, both in the Source window and in the Disassembly window.

To set the next statement to execute in a source window while the debugger is in the break state

  1. In a source window, move the insertion point to the statement or instruction that you want to execute next.

  2. Right-click, and then choose Set Next Statement.

To set the next disassembly instruction to execute while the debugger is in a break state

  1. In the Disassembly window, move the insertion point to the disassembly instruction you want to execute next.

  2. Right-click, and then choose Set Next Statement.

    You can use the Set Next Statement command to skip a section of code and continue to debug other sections; for example, a section that contains a known bug.

    Because the intervening code is not executed, use this command with caution.

    You can also return to an earlier statement to retest your application, using different values for variables.

See Also

Concepts

Debugger Execution Control