Can I set breakpoints to all methods in a class at once in Visual Studio?

breakpoints, debugging, visual-studio-2010

Solution

There is an addon-less method described here: How to set a breakpoint on a C++ class in the Visual Studio Debugger

In short, you can bring up the "New Breakpoint" dialog by pressing Ctrl+K, B and type in `ClassName::*` to the function field. In Visual Studio 2017 you need to include the namespace in the field, as in `NamespaceName::ClassName::*`. You can then disable some of them in the breakpoints window.

Problem

I have 40-50 methods in a class, I want to add breakpoints to all of them. Can I add breakpoints to all of them at once?

Original source

Related problems