NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Setting the Execution Point

In the Visual Studio debugger, you can move the execution point to set the next statement of code (or assembly-language instruction) to be executed. An arrowhead in the margin of a source or Disassembly window marks the current location of the execution point. By moving the execution point, you can skip over a portion of code or return to a line previously executed. This can be useful in some situations — for example, if you want to skip a section of code that contains a known bug and continue debugging other sections.

Caution   Changing the execution point causes the program counter to jump directly to the new location. Use this command with caution. Please be aware:

You cannot set the execution point while your application is actively running. To set the next statement, your application must be in a break state.

To set the next statement to execute

  1. In a source window or Disassembly window, click to select the statement or assembly-language instruction you want to execute next.
  2. From the Debug menu, choose Set Next Statement.

If the statement you want to set is in the same source file or Disassembly window as the current execution point, you can set the execution point by dragging the marker that appears in the left margin of the window:

To set the next statement to execute (in the same source file or Disassembly window)

See Also

Execution Control