Introduction to Visual Studio 2010 - Part 2 importantly covers IntelliTrace & Extensions. Some interesting facts about VS from the video course -
- You can debug a release build. Release folder can contain .pdb. PDB – Program Debug Database
- Deploy Release version of build. Depending on the third party libraries you are using, their licensing terms may not allow you to deploy the Debug version.
- Build > Clean Solution throws away all the products of a prior Build. This will mean that the next build will be full build.
- Rather than doing a Clean Solution & then Build Solution, you can directly do a Rebuild Solution
- Look at Locals window after a breakpoint is hit for variable values. Use Watch window for specific variables
- DataTip dimensions can be modified
- Ctrl + Datatip – for a transparent background, useful when you want to see code behind a datatip
- Pin a DataTip to see variable value change dynamically inside it.It can be dragged, unpinned or closed.
- Trivia: Codename of IntelliTrace was Historical Debugging
- IntelliTrace is available in VS Ultimate only
- Saves a trace file of execution path & values of member variables
- By default has very little performance impact
- IntelliTrace can provide time travel & space travel (you can test a iTrace file on computers other than originating one to analyze "works on my machine" scenarios)
- When you close VS, itrace files are gone so save it elsewhere. You can get the iTrace file's location from Tools > Options | IntelliTrace > Advanced
- You can open a itrace file within VS. Double click main thread in thread window to replicate scenario & start debugging on a different computer.
- Using traces from other machines lets you share bugs with other developers or avoid "works on my machine"
- Visual Studio Extensions can boost productivity. There are over 2400 extensions for different versions of VS on VisualStudioGallery.com
- Use Tools > Extension Manager to enable/disable/uninstall update
- Productivity Power Tools by Microsoft is a bundle of popular extensions that includes features that go on to become standard features in future VS versions. Some features in Pro Power Tools include -
- Auto brace completion
- Ctrl-Click Go To Definition
- Column guides (to check length of each code statement does not go beyond a specific column number)
- Quick Access (Windows Vista/7 like universal Find)
- Productivity Power Tools (1.37MB) are distributed as a file with an extension vsix, a new format in VS2010
- Microsoft All-In-Code Framework is a free, centralized code sample library
- Microsoft All-In-Code Framework Sample Browser is available from VisualStudioGallery
- You can select a keyword within your code & select Search Code Sample in context menu to view matching samples from All-In-Code Framework.