From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add breakpoints to all overloads with function breakpoints

Add breakpoints to all overloads with function breakpoints - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Add breakpoints to all overloads with function breakpoints

In this type, this ticket generator class, I've got multiple overloads of this get ticket count. I've got one with no parameters, one with a boolean in parameter, and one with the string parameter. And in my current de-bugging situation, I would like to put a break point on every overload of this method. That's easy to do in this example, because I can see them all in the same file. So I can go here, press F9 to add the breakpoint, and do the same thing for the other two overloads. But in the real world, things can get more complicated than this. You could be working with multiple assemblies, maybe you've got some sort of bug, or there's a similar or same name function somewhere else. Maybe you've got a code generation tool that's building a partial class, and it's generating another get ticket count. What we want to do is, put a breakpoint on any get ticket count. No matter where it is in…

Contents