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!

Inserting A File Breakpoint In The Source Window

The most intuitive type of breakpoint in a source window is the file breakpoint. A file breakpoint is set at a location in the source file.

To insert a file breakpoint in a source window

  1. In the source window, click on the line where you want to insert the breakpoint.
  2. From the Debug toolbar, choose the Insert Breakpoint tool.

    — or —

    Right-click and choose Insert Breakpoint from the shortcut menu.

This action inserts a file breakpoint at the beginning of the chosen line. In most cases, this is sufficient. Sometimes, however, a line contains more than one statement. In that case, you may need to set the breakpoint somewhere other than the beginning of the line. After you have inserted the breakpoint, you can move it to a specific column (character) within the line:

To move the breakpoint within the line

  1. Right-click on the line where you have set the breakpoint, and select Breakpoint Properties from the shortcut menu.
  2. In the Breakpoint Properties dialog box, choose the File tab and select the Character box.

    The value in the Character box is normally 1 by default.

  3. Edit the value in the Character box to the character where you want to set the breakpoint.
Note If you try to set a breakpoint on a line that does not contain executable code, the debugger automatically moves the breakpoint to the next line that contains executable code. You cannot set a breakpoint inside an attribute. If you try to set a breakpoint on an attribute, the debugger automatically moves the breakpoint to the next line that contains executable code.

See Also

Breakpoint Operations In A Source Window