12

Advanced Debugging Using IntelliTrace

Embed Size (px)

DESCRIPTION

Visual Studio 2010 Ultimate provides a wealth of functionality for figuring out what is happening with your application or even being able to debug what happened up to that point with IntelliTrace. Pressing F5, adding the odd breakpoint and stepping through the application is about as far as they get when debugging. In this session, we will learn more about how to use the debugger and also IntelliTrace to track down those hard to spot errors fast.

Citation preview

Page 1: Advanced Debugging Using IntelliTrace
Page 2: Advanced Debugging Using IntelliTrace

Advanced Debugging Using IntelliTrace

Patrick YongChief Technology Office | IPS Infonomicshttp://patrickyong.net

Page 3: Advanced Debugging Using IntelliTrace

Agenda

IntelliTrace – The Basics

IntelliTrace and Testers

IntelliTrace and Team Build

Visual Studio Debugging Tips

Page 4: Advanced Debugging Using IntelliTrace

Patrick Yong

SharePoint MVP

CTO, IPS InfonomicsSharePoint and Azure Training + Consultancy

Information + Record management outsourcing

http://www.ipsinfonomics.com

Page 5: Advanced Debugging Using IntelliTrace

What is IntelliTrace?

Helps eliminate the “no repro” scenario

Basic Idea: capture debugger state information during program execution

Page 6: Advanced Debugging Using IntelliTrace

What gets collected?

Collects:IntelliTrace Events

Method entry/exit calls

Breakpoints

Page 7: Advanced Debugging Using IntelliTrace

IntelliTrace and Testers - Scenario

Nightly Team Build runs

Tester run their test cases against the buildBehind the scenes while testing, IntelliTrace information is being captured

Tester files a bug with an attached IntelliTracefile

Developer opens the attached IntelliTrace log file

Page 8: Advanced Debugging Using IntelliTrace

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 ServerCentral location for storing your PDB files

Essentially this is just a file share

Page 9: Advanced Debugging Using IntelliTrace

Symbol and Source Servers

To Set Up a Symbol ServerCreate a file share to hold the PDB Files

Add this file share to the Build Definition in Team Build

Source Server IndexingModifies 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

Page 10: Advanced Debugging Using IntelliTrace

Visual Studio Debugging Tips

Breakpoint LabelingAllows you to group/filter on a collection of breakpoints

Import/Export Breakpoints

Pinnable Data Tips

Import Export Data Tips

Conditional Breakpoints

Breakpoint Hit Count

Page 11: Advanced Debugging Using IntelliTrace

Questions & Answers

Page 12: Advanced Debugging Using IntelliTrace

We value your feedback!

Please remember to complete the overall conference evaluation form and return it to the Registration Counter.