Did you know... You can use the Watch Window to quickly change a variable's value - #149
And now for something a little different...
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 below).
- 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.
If you need to clear the watch window's variable contents, just hit delete on that row.
Technorati Tags:
VS2005Tip,
VS2008Tip