07.24 Setting a Breakpoint Filter

WINDOWS

Alt,T, O (options)

MENU

Tools | Options; [Context Menu] | Filter

COMMAND

Tools.Options; EditorContextMenus.CodeWindow.Breakpoint.BreakpointFilter

VERSIONS

2005, 2008, 2010

CODE

vstipDebug0024

Breakpoint filters are used when you want to break based on thread, process, or machine information. This is particularly useful for debugging multithreaded applications. To make sure you can set them, go to Tools | Options | Debugging | General and select Enable Breakpoint Filters:

image with no caption

To make a breakpoint filter, just right-click any regular breakpoint and choose Filter:

You get the Breakpoint Filter dialog box:

As shown in ...

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.