Thursday, July 31, 2014

Tip 7.35: You can view numeric values in hexadecimal format in your debug windows

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



The debug tool windows (Locals, Autos, and Watch window) have a context menu that includes the Hexadecimal Display command. Just in case you ever needed to see values in hexadecimal, you now know how to do it.



Happy Programming! =)
Posted by Nils-Holger at 1:19 PM with 440 comments.

Wednesday, July 30, 2014

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

"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! =)
Posted by Nils-Holger at 12:35 PM with 444 comments.

Tuesday, July 29, 2014

Tip 7.33: How to show or prevent the Error List from appearing after a failed build

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Usually the Error List is shown (whether it is autohiding or just closed) whenever a build fails with errors. If you like using just the Output window (because you can double-click an error message in the Output window and jump to that line), here's how to prevent the Error List from appearing.

Under Tools–Options–Projects And Solutions–General, there's the Always Show Error List If Build Finishes With Errors check box. Uncheck this option to prevent the Error List from appearing after a failed build.



Happy Programming! =)
Posted by Nils-Holger at 1:38 PM with 1279 comments.