Five Tools You Can Use Beyond Visual Studio - PowerPoint PPT Presentation

1 / 60
About This Presentation
Title:

Five Tools You Can Use Beyond Visual Studio

Description:

Crash in Main Thread. 6. Combined. 56. Dump File. 6. Combined. 57 ... .NET debugging can be harder - One solution Learn tools. Skills: - Get good stack trace ... – PowerPoint PPT presentation

Number of Views:70
Avg rating:3.0/5.0
Slides: 61
Provided by: alan83
Category:
Tags: beyond | crash | five | net | studio | tools | use | visual

less

Transcript and Presenter's Notes

Title: Five Tools You Can Use Beyond Visual Studio


1

.NET Debugging
Five Tools You Can Use Beyond Visual Studio
Alan Cobb - Consultantwww.alancobb.com
1
2
Outline
Why should you care?Details of five tools
Break
Use tools on example bugs
1
3
Question
Why should you care?
1
4
Question
Are there any major drawbacksto .NET development?
1
5
One .NET drawback
Initial coding easier,but debugging can be
harder.
1
6
Layer diagram
Your .NET app
.NET classes and CLR
Windows OS
1
7
Angry Customer Frustrated Developer

1
8
Bug Found Everybody Is Happy

1
9
About Alan Cobb
Consultant - www.alancobb.com - Programming on
Microsoft platforms since DOS era-
C/C, MFC, now .NET - Mixture system and
apps
1
10

Five Tools in Detail
2
11
Five .NET Debugging Tools
Frequent Use - DebugView - FileMon -
Process Explorer
Heavy Duty - ADPlus - WinDbg SOS
Extension
2
12

Frequent Use Tools
3
13
Frequent Use Tools
Frequent Use - DebugView - FileMon -
Process Explorer
3
14
Frequent Use Tools
  • Where to get them?
  • Free download fromwww.sysinternals.com

3
15
Download from SysInternals.com
3
16
Book from author of SysInternals tools
3
17

DebugView
3
18
DebugView
3
19
DebugView
3
20
DebugView
3
21
Additional material - Hidden
  • High end logging options
  • Enterprise Librarys Logging and Instrumentation
    Application Block
  • EIF (Enterprise Instrumentation
    Framework)Superceeded by Enterprise
    LibrarySays why here http//msdn.microsoft.com/
    vstudio/enterprise/EIF/
  • Uses of DebugView
  • BizTalk
  • http//biztalkug.com/Newsgroups/orchestration/8047
    1.aspx
  • Supports idea that normally people think of
    Trace.WriteLine needed VS to view.

3
22

FileMon
3
23
FileMon
3
24
FileMon
3
25
FileMon - ltHiddengt
3
26
FileMon
3
27
FileMon
3
28
FileMon
3
29
FileMon - ltHiddengt
ltMore usesgt
3
30

Process Explorer
4
31
Process Explorer
  • How useful for .NET developer?

4
32
Reviewing Windows Task Manager
4
33
Task Manager shows CPU usage
4
34
Process Explorer Listing OS handles
4
35
Process Explorer - ltHiddengt
ltHow use handle list?gt
4
36
Process Explorer Find DLL
4
37
Sample SimpleHelloWorld.exe
4
38
.NET programs highlighted yellow
4
39
Assemblies-DLLs Used
4
40
Assembly-DLL Descriptions
4
41
VS Debuggers Module List
4
42

Heavy Duty Tools
5
43
Five .NET Debugging Tools
Frequent Use - DebugView - FileMon -
Process Explorer
Heavy Duty - ADPlus - WinDbg SOS
Extension
5
44
Debugging Tools for Windows
  • Where to get them?
  • Free from Microsoft
  • Download from
  • http//www.microsoft.com/whdc/DevTools/Debugging/
    default.mspx
  • Or Google for WinDbg download

5
45
Debugging Tools for Windows Home page
http//www.microsoft.com/whdc/DevTools/Debugging/d
efault.mspx
5
46
ADPlus and WinDbg
  • How useful to .NET apps developers?

5
47
Production Debugging
  • After released to customer
  • Usually no Visual Studio

5
48
Production Debugging ltHiddengt
  • ltAdditional detailgt

5
49
Using ADPlus and WinDbg
  • Snapshot a dump file with ADPlus
  • Analyze dump file with WinDbg SOS

5
50
Production Debugging ltHiddengt
  • ltAdditional detailgt

5
51
DTFW Relationships
ADPlus.VBS (debugger control script)
Debugger user
interfaces
WinDbg.EXE
CDB.EXE
Debugger
DLLs
Main debugger DLLs
Understands managed code SOS.DLL
5
52

Example Bug Diagnosis
6
53
Types of Bugs
  • - Crash / Exception
  • Hang
  • Memory Leak
  • Other

6
54
Bug Demo App
6
55
Crash in Main Thread
6
56
Dump File
6
57
WinDbg Viewing Dump File
6
58
Stack Trace with WinDbg
6
59

Conclusion
C
60
Conclusion
Questions?
C
61
Review
Review - .NET debugging can be harder -
One solution Learn tools Skills - Get
good stack trace - Create use dump file
C
62
Angry Customer Frustrated Developer

C
63
Bug Found Everybody Is Happy

C
64
Conclusion
.NET debugging in the future?
C
65
Conclusion
- Summary handout - Presentation evaluation
C
66

- End -
C
Write a Comment
User Comments (0)
About PowerShow.com