Skip to content

Tip 7.18: You can set conditional breakpoints

November 3, 2013

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

When you want to break only under certain conditions, you can right-click a breakpoint red circle (or go to the Breakpoints window and bring up the context menu on a given breakpoint) and select Condition to bring up the dialog box for conditional breakpoints.

vstip7180

You’re given two options: break only when the specified expression is true, or break only when the specified value has changed. For this example, because she’s in a for loop, she’ll break when the value of i is greater than 5.

vstip7180a

You’ll notice that the breakpoint circle now has a red plus on it to indicate it is conditional.

vstip7180b

Happy Programming! =)

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: