Previously we discussed the concept of Hit Count breakpoints and Conditional breakpoints. We will now explain function breakpoints. This functionality allows us to set the name of a function as the condition for the breakpoint to hit.
Let's start by creating 2 functions, SetString() and GetString(), and call them as SetString() first and then GetString().
Figure 1: Breakpoint Function
To set the breakpoints for this type, go to Debug, then Windows and select Breakpoints to open the Breakpoints window. Select the option New, then the Break at Function option from the window.
Figure 2: Break at Function
This opens up a new window and we specify the name of the GetString() function as the function condition for the breakpoint to be hit.
Figure 3: New breakpoint
Hover over the breakpoint and we can see its details.
Figure 4: Tips Tricks Function
Run the application and the breakpoint will be hit only when the execution of the GetString() function starts.
Figure 5: Run Application
Easy and helpful, isn't it? Happy coding!
Function Breakpoint in Visual Studio
This article explains the function breakpoints in Visual Studio.


Gopi ChandPosted Jul 11, 2015, 9:26 AM EDT
Very good
Santhakumar MunuswamyPosted Jul 10, 2015, 10:54 PM EDT
Good article! Thanks for sharing
Nilesh JadavPosted Jul 10, 2015, 9:18 PM EDT
Nice one sir
Neeraj KumarPosted Jul 10, 2015, 2:44 PM EDT
Nice...
Narasimha Reddy ChennupalliPosted Jul 10, 2015, 5:53 AM EDT
Good one...
Pankaj Kumar ChoudharyTOP 100Posted Jul 10, 2015, 5:32 AM EDT
Nice one Sir.........
Rakesh KalluriPosted Jul 10, 2015, 3:30 AM EDT
Good one..
Filippo BerardoPosted Jul 10, 2015, 2:01 AM EDT
Useful! Other tip and tricks on debugging?? :)
Gowtham RajamanickamTOP 100Posted Jul 10, 2015, 1:04 AM EDT
Good one..
Sibeesh VenuTOP 100Posted Jul 10, 2015, 12:47 AM EDT
God one.