12
www.xedotnet.org Debugger Tips and Tricks for .NET Developers with Microsoft Visual Studio 2015 Mirco Vanini Microsoft® MVP Windows Development AllSeen Alliance - AllJoyn® Ambassador

Debugger Tips and Tricks for .NET Developers

Embed Size (px)

Citation preview

Page 1: Debugger Tips and Tricks for .NET Developers

www.xedotnet.org

DebuggerTipsandTricksfor.NETDeveloperswithMicrosoftVisual

Studio2015

MircoVaniniMicrosoft®MVPWindowsDevelopmentAllSeenAlliance- AllJoyn®Ambassador

Page 2: Debugger Tips and Tricks for .NET Developers

18/11/16 2

Aspecialthanks…

Theevent was sponsored by

Page 3: Debugger Tips and Tricks for .NET Developers

Intro20+Tips andTricks inVisualStudio2015

18/11/16 3

Agenda

Page 4: Debugger Tips and Tricks for .NET Developers

18/11/16 4

Intro

“Everyone knows that debugging is twice as hard as writing aprogram in the first place. So if you're as clever as you can bewhen you write it, how will you ever debug it?”

BrianKernighan,ComputerScientist

“As soon as we started programming, we found to our surprisethat it wasn't as easy to get programs right as we had thought.Debugging had to be discovered. I can remember the exactinstant when I realized that a large part of my life from then onwas going to be spent in finding mistakes in my own programs.”

SirMauriceWilkes,ComputerScientist

Page 5: Debugger Tips and Tricks for .NET Developers

Demo

18/11/16 5

• ProjectPropertiesLaunchOptions

• StartwithStepping• ReturnValues• SetNextStatement• StepIntoSpecific• RuntoCursor• EditandContinue• StepOut

Page 6: Debugger Tips and Tricks for .NET Developers

Demo

18/11/16 6

• Debugger.IsAttached• Debugger.Break()• Visualizers(6)• PeekDefinition(Alt+F12)• DebuggerDisplay• DataTips

• Transparency• Pinning• Floating• Comments

• MakeObjectID• AddWatchFromWatch

Page 7: Debugger Tips and Tricks for .NET Developers

Demo

18/11/16 7

• ConditionalBreakpoints• HitCountBreakpoints• LambdaDebugging• ImmediateWindow• Debug->StartNewInstance• MultipleProjectLaunch• Restart• TracePoints• EditVariableValue

Page 8: Debugger Tips and Tricks for .NET Developers

Demo

18/11/16 8

• ExceptionSettings• CallStackwindow

• Async• ShowParameterValues• ShowExternalCode

• FullScreenmode• Taskswindow

Page 9: Debugger Tips and Tricks for .NET Developers

Demo

18/11/16 9

UIDebuggingToolsforXAML

Inspectthelivevisualtreewhiledebugging• Updatesinrealtime• Jumptosource

Livepropertyexplorer• Seeanyelement’spropertiesinrealtime

Selectionbyclickingontheapp

Page 10: Debugger Tips and Tricks for .NET Developers

Demo

18/11/16 10

DiagnosticToolswindow

MemoryandCPUgraphsMemorytoolingDebuggerbreakeventhistoryOutputwindowcontent*IntelliTraceevents*

*EnterpriseSKUonly

Page 11: Debugger Tips and Tricks for .NET Developers

18/11/16 11

Who Iam

[email protected]@MircoVanini

MircoVaniniMicrosoft®MVPWindowsDevelopmentAllSeen Alliance- AllJoyn®Ambassador

TinyCLR.it

Page 12: Debugger Tips and Tricks for .NET Developers

18/11/16 12

Feedback

https://goo.gl/forms/IKZWK2UKc06wr39y2