Tips : Set Breakpoint to multiple Functions at a same time in Visual Studio December 3, 2010Posted by Abhijit Jana in Debugging, Tips and Tricks, Visual Studio 2010.
Tags: Breakpoint, BreakPoint at Funcation, codeproject, Debugging, Find Combo Box, How To, Tips and Tricks, Visual Studio
Visual Studio having great features to set breakpoint in multiple functions at same time. For most of the time, to set a breakpoint with in a function you just put a breakpoint in the first line of the function. Now, assume you have 10 different overloaded methods or you have same function in different project, and you want to put breakpoint all of them or few of them, then it will take time to put breakpoint in each and every function. In this post I am going to share two quick tips by which you can set breakpoint to function very easily. first one is by using “Break at Function” and second one by “Using Find Combo Box”.
Tip 1 : Using Break at Function
You can use break at function window from Breakpoint Window where you can give the function name, it will automatically show you the all function name that are matching with the name and will put the breakpoint.
Debug > Window > Break Point
Select “Break at Function“
Give the Function Name and Click on OK, Below screen will appear
Where it will show you all the function name and from where you can select the function where do you want put the break point or select All if you want to put breakpoint to all of your function.
Now, you may think, what about multiple project, yes, this will work for multiple project as well. If you have multiple methods with same name in different project it will retrieve all of them and will put the breakpoint on the selected method.
Note : You have to make sure,in function break point window, you have checked “Use Intellisense to verify the function name” because, based on the Visual Studio will select the functions.
Now here is the second and Interesting tips.
Tip 2 : Use Find Combo Box
You can use the find combo box for the similar purpose that I have described earlier. But this is very easy and interesting. What you need to is, put the function name at Find Combo box and Press F9.
Summary : In this post I have shared two easiest to deal with breakpoint in function. Hope this will help you.