Debugging C# Applications

17
Debugging C# Applications Jaliya Udagedara

description

Slide deck on Debugging C# Applications.

Transcript of Debugging C# Applications

Page 1: Debugging C# Applications

Debugging C# Applications

Jaliya Udagedara

Page 2: Debugging C# Applications

What are we going to discuss today?

The Problem

What’s New for the Debugger in Visual Studio 2013

Diagnostic Messages

Debug / Trace Classes

Write / Assert / Fail methods

Demo : Using Debug and Trace

Debugging with IntelliTrace

Demo : Using IntelliTrace

Page 3: Debugging C# Applications

The Problem

Finding bugs

Issues thrown “over the wall” from Test / QA

Reworking the same bug more than once

Unknown issues

Page 4: Debugging C# Applications

What’s New for the Debugger in Visual Studio 2013

Asynchronous Debugging in Windows Store Apps

Just My Code for C++ and JavaScript Debugging

64-bit Edit and Continue for the .NET Framework

Return value inspection for .NET Framework Methods

.NET Framework Memory Analysis with Dump Files

Code Map Debugging

IntelliTrace Debugging

Page 5: Debugging C# Applications

Diagnostic Messages

Debug and Trace Classes

P

Debug is only Debug configuration

Trace is for both Debug and Release configurations

Page 6: Debugging C# Applications

Diagnostic Messages contd.

Debug and Trace classes contains various methods.

Write

O

Assert

Break execution and outputs information if a specified condition fails

Fail

Page 7: Debugging C# Applications

• Using Debug and Trace

Page 8: Debugging C# Applications

Debugging with IntelliTrace

Page 9: Debugging C# Applications

Live Debugging

Page 10: Debugging C# Applications

Debugging with IntelliTrace

Page 11: Debugging C# Applications

IntelliTrace Events

Page 12: Debugging C# Applications

IntelliTrace Events

Page 13: Debugging C# Applications

IntelliTrace Calls

Low performance

Page 14: Debugging C# Applications

IntelliTrace Events vs Calls View

Page 15: Debugging C# Applications

• Using IntelliTrace

Page 16: Debugging C# Applications

Useful links

http://www.visualstudio.com/downloads/download-visual-studio-

vs#d-additional-software

http://intellitracecpconfig.codeplex.com/

Page 17: Debugging C# Applications

Thank You!http://www.jaliyaudagedara.blogspot.com/