Skip to content

Tip 7.34: You can use the Watch window to quickly change a variable’s value

March 6, 2013

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

Sara Ford’s Blog

Have you ever been debugging some code and wanted to quickly change a variable’s value without having to stop debugging? Here’s what to do.

Add the value to the Watch window. You can select the variable and drag it into the Watch window as shown here.

Then double-click the variable’s contents within the Watch window, and you’ll be able to edit.

Either click outside this field or press Enter to commit the change, and the variable will contain the new contents.

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: