07.22 Set a Simple Breakpoint Condition

MENU

[Context Menu] | Condition

COMMAND

EditorContextMenus.CodeWindow.Breakpoint.BreakpointCondition

VERSIONS

2005, 2008, 2010

CODE

vstipDebug0021

Conditional breakpoints are arguably the most powerful types of breakpoints you can set. Many steps are involved in using them correctly, and knowing what steps you need to take is half the battle. Start by right-clicking on any breakpoint and choosing Condition.

image with no caption

This gives us the Breakpoint Condition dialog box. Notice that the condition can be turned off by clearing the Condition check box. Additionally, two options are available for the condition that you set:

  • Is ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.