Skip to content

Commit 38860e6

Browse files
author
Greg Van Liew
authored
Merge pull request #127 from Microsoft/mikejo
Mikejo
2 parents 7a8e6a2 + 5faa363 commit 38860e6

8 files changed

+23
-3
lines changed

docs/debugger/managing-exceptions-with-the-debugger.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,17 @@ public class GenericException<T> : Exception
191191
You can add the exception to **Exception Settings** like this:
192192

193193
![adding generic exception](../debugger/media/addgenericexception.png "AddGenericException")
194+
195+
### Adding Conditions to an Exception
196+
197+
You can set conditions on exceptions in the **Exception Settings** dialog box. Currently supported conditions include the module name(s) to include or exclude for the exception. By setting module names as conditions, you can choose to break for the exception only on particular code modules, or you can avoid breaking on particular modules.
198+
199+
> [!NOTE]
200+
> Adding conditions to an exception is new in [!include[vs_dev15](../misc/includes/vs_dev15_md.md)]
201+
202+
To add conditional exceptions, choose the **Edit condition** icon in the Exception Settings dialog box or right-click the exception and choose **Edit Conditions**.
203+
204+
![Conditions on an Exception](../debugger/media/dbg-conditional-exception.png "DbgConditionalException")
194205

195206
## See Also
196207
[Continuing Execution After an Exception](../debugger/continuing-execution-after-an-exception.md)
6.21 KB
Loading
1.41 KB
Loading
Loading
Loading
2.42 KB
Loading

docs/debugger/navigating-through-code-with-the-debugger.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,20 @@ Get familiar with commands and shortcuts to navigate code in the debugger and th
113113

114114
- **Run to the cursor location**
115115

116-
To run to the cursor location, place the cursor on an executable line of code in a source window. On the editor's context menu (right-click in the editor), choose **Run to Cursor**. This is like setting a temporary breakpoint.
116+
To run to the cursor location, place the cursor on an executable line of code in a source window. On the editor's context menu (right-click in the editor), choose **Run to Cursor**. This is like setting a temporary breakpoint.
117+
118+
- **Run to Click**
119+
120+
To run to a point in your code while paused in the debugger, select the **Run execution to here** green arrow icon (you see the icon while hovering over a line of code). This eliminates the need to set temporary breakpoints.
121+
122+
![Debugger's Run to Click](../debugger/media/dbg-run-to-click.png "DbgRunToClick")
123+
124+
> [!NOTE]
125+
> **Run to Click** is new in [!include[vs_dev15](../misc/includes/vs_dev15_md.md).
117126

118127
- **Manually break into code**
119128

120-
To break into the next available line of code in an executing app, choose **Debug**, **Break All** (keyboard: **Ctrl+Alt+Break**).
129+
To break into the next available line of code in an executing app, choose **Debug**, **Break All** (keyboard: **Ctrl+Alt+Break**).
121130

122131
If you break while executing code without corresponding source or symbol (.pdb) files), the debugger displays a **Source Files Not Found** or a **Symbols Not Found** page that can help you find the appropriate files. See [Specify Symbol (.pdb) and Source Files](../debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md). If you can't access the supporting files, you can still debug the assembly instructions in the Disassembly window.
123132

docs/debugger/what-s-new-for-the-debugger-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The debugger includes these new features:
4545

4646
- The **Exception Helper** replaces the Exception Assistant and appears in a non-modal dialog box where the error occurred. The **Exception Helper** provides quicker access to any inner exceptions, additional analysis by the debugger (if available), and immediate access to the **Exception Settings** for the exception. The Exception Helper can also be dragged to a floating view if it is blocking something that you need to see.
4747

48-
For example, a **NullReferenceException** now shows the variable that has the null reference.
48+
For example, a **NullReferenceException** now shows the variable that has the null reference (extra information).
4949

5050
![Debugger's Exception Helper](../debugger/media/dbg-exception-helper.png "DbgExceptionHelper")
5151

0 commit comments

Comments
 (0)