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

Charu picture Charu · Jul 24, 2012 · Viewed 24.5k times · Source

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?

Answer

vt. picture vt. · Feb 22, 2013

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+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.