Tips : Set Breakpoint to multiple Functions at a same time in 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

image 

Select “Break at Function“

image

Give the Function Name and Click on OK, Below screen will appear

image

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.

image

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.

image

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. :)

image

Summary :  In this post I have shared two easiest to deal with breakpoint in function. Hope this will help you.

Thanks !

AJ
Shout it

8 thoughts on “Tips : Set Breakpoint to multiple Functions at a same time in Visual Studio

  1. Tips : Set Breakpoint to multiple Functions at a same time in Visual Studio « Abhijit’s World of .NET…

    Thank you for submitting this cool story – Trackback from DotNetShoutout…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s