Skip to content

Tip 6.19: You can set a breakpoint on a function from the Find combo box

June 24, 2014

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

In the standard command bar, you’ll see the Find combo box right next to Find In Files. Obviously, you can type a function name and hit Enter to search, but where’s the fun in that?

VSTip6119

Type the name of the method, as she has in the preceding screen shot, and hit F9. You’ll notice the breakpoint is set at method Run.

VSTip6119a

Why did this happen?

F9 is bound to a command called Debug.ToggleBreakpoint. If there’s text in the Find combo box and you run a Visual Studio command from within the Find combo box, the IDE will use that text as the command parameter. In the case of F9, the IDE toggled a breakpoint at the specified function, hence setting a breakpoint at Run().

Happy Programming! =)

Advertisements
Leave a Comment

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

%d bloggers like this: