learn how to debug

15
Fabricio Catae Premier Field Engineer Learn Debugging in 60 minutes For SQL Server professionals

Upload: fabricio-catae

Post on 21-Feb-2017

103 views

Category:

Technology


3 download

TRANSCRIPT

Fabricio CataePremier Field Engineer

Learn Debuggingin 60 minutesFor SQL Server professionals

Who I am

Me Microsoft Travel

Weekends Baseball Friends

Software BugsImpossível evitá-los...

Erros Genéricos

Sempre podem ocorrer...Afetam qualquer pessoa

Qual ação tomar?

Solução: Debugging

Dump Files

• Cópia da memória da aplicação• Guarda informação das threads

Usado somente como último recurso

Agenda: Learn DebuggingBasic Advanced Real World Scenarios

in 60 minutes

SQL Requests

Easy to find the problem – see the wait type

Stack Dump

Raw Symbols

Compilation OutputImages Symbols

Example

Where to Find Symbols?

http://msdl.microsoft.com/download/symbols

http://symweb

Lab.sympath

~ / ~0s

k

~*k

lm / lml

Stack Analysis

Slow Performance

Start looking the DLL’s involved

Identify the transitions

Find the wait type

Thread Analysis

SyncDriverEnter RequestOCIWork ?

Problem AnalysisPAGEIOLATCH_SH PAGEIOLATCH_EX

Debugging SkillProduct internals

Problem Solving with WinDBG

Assembly languageWindows programming

Ramp-up: 1-2 years