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

前端 未结 6 1868
盖世英雄少女心
盖世英雄少女心 2020-12-28 13:06

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?

6条回答
  •  情话喂你
    2020-12-28 13:54

    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.

提交回复
热议问题