240 likes | 559 Views
DEV 320. Demystifying Debugging with Microsoft Visual Studio Ultimate and IntelliTrace. Mickey Gousset Senior Technical Developer Infront Consulting Group. Agenda. Who Am I Visual Studio 2010 Debugging Features IntelliTrace – The Basics IntelliTrace and Testers
E N D
DEV 320 Demystifying Debugging with Microsoft Visual Studio Ultimate and IntelliTrace Mickey Gousset Senior Technical Developer Infront Consulting Group
Agenda • Who Am I • Visual Studio 2010 Debugging Features • IntelliTrace – The Basics • IntelliTrace and Testers • IntelliTrace and Team Build • Creating Custom IntelliTrace Events
Who Am I • Mickey Gousset • Senior Technical Developer at Infront Consulting Group • Microsoft Application Lifecycle Management MVP • http://www.teamsystemrocks.com • Twitter: mickey_gousset • Live Messenger: mickey_gousset@hotmail.com • Author/Writer • “Professional Application Lifecycle Management with Visual Studio 2010” – Wrox • “Inside TFS” column at VisualStudioMagazine.com
Visual Studio 2010 Debugging Features • Breakpoint Labeling • Allows you to group/filter on a collection of breakpoints • Import/Export Breakpoints • Pinnable Data Tips • Import Export Data Tips • Conditional Breakpoints • Breakpoint Hit Count
Visual Studio 2010 Debugging Features Mickey Gousset Senior Technical Developer Infront Consulting Group demo
IntelliTrace – The Basics • Helps eliminate the “no repro” scenario • Basic Idea: capture debugger state information during program execution
IntelliTrace – What Is Collected • Collects: • IntelliTrace Events • Method entry/exit calls • Breakpoints
IntelliTrace – The Basics Mickey Gousset Senior Technical Developer Infront Consulting Group demo
IntelliTrace and Testers - Scenario • Nightly Team Build runs • Tester run their test cases against the build • Behind the scenes while testing, IntelliTrace information is being captured • Tester files a bug with an attached IntelliTrace file • Developer opens the attached IntelliTrace log file
IntelliTrace and Testers Mickey Gousset Senior Technical Developer Infront Consulting Group demo
IntelliTrace and Team Build • Symbol Files • .PDB files • Used during the debugging process • Includes Source File Names, Line Numbers and Local Variable Names • You should always keep your symbol files around • Symbol Server • Central location for storing your PDB files • Essentially this is just a file share
Symbol and Source Servers • To Set Up a Symbol Server • Create a file share to hold the PDB Files • Add this file share to the Build Definition in Team Build • Source Server Indexing • Modifies information in the PDB to include • Source Control provider information • Command-line utility to retrieve files (tf.exe) • Full TFS Version Control Repository Path including branch name • Version
IntelliTrace and Team Build Mickey Gousset Senior Technical Developer Infront Consulting Group demo
Creating Custom IntelliTrace Events • IntelliTrace ships with predefined collection events • The framework exists to create custom collection events • WARNING!!!!! • This functionality is not officially supported • There is no official documentation (such as at MSDN) • How this is implemented could change in a later Visual Studio Release • So, if you aren’t scared off yet…….
Creating Custom IntelliTrace Events • CollectionPlan.xml • Contains a list of events (a.k.a. methods) that IntelliTrace should trace • Have to reload Visual Studio after a change to this file • Declare a new Category • Declare a new Module • Assembly where IntelliTrace looks to find events • Declare a new DiagonisticEventSpecification • Specifies the method to trace • This does the heavy lifting
Creating Custom IntelliTrace Events Mickey Gousset Senior Technical Developer Infront Consulting Group demo
Wrapping Up • Who Am I • Visual Studio 2010 Debugging Features • IntelliTrace – The Basics • IntelliTrace and Testers • IntelliTrace and Team Build • Creating Custom IntelliTrace Events
Required Slide Speakers, please list the Breakout Sessions, Interactive Discussions, Labs, Demo Stations and Certification Exam that relate to your session. Also indicate when they can find you staffing in the TLC. Related Content • DEV 365-HOL | Debugging with IntelliTrace using Microsoft Visual Studio 2010 Ultimate • Find me at the TLC, or email me at mickey.gousset@infrontconsulting.com to set a time to meet up.
DEV Track Resources • http://www.microsoft.com/visualstudio • http://www.microsoft.com/visualstudio/en-us/lightswitch • http://www.microsoft.com/expression/ • http://blogs.msdn.com/b/somasegar/ • http://blogs.msdn.com/b/bharry/ • http://www.microsoft.com/sqlserver/en/us/default.aspx • http://www.facebook.com/visualstudio
Resources • Connect. Share. Discuss. http://northamerica.msteched.com Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn