Upload
mirco-vanini
View
38
Download
1
Embed Size (px)
Citation preview
www.xedotnet.org
DebuggerTipsandTricksfor.NETDeveloperswithMicrosoftVisual
Studio2015
MircoVaniniMicrosoft®MVPWindowsDevelopmentAllSeenAlliance- AllJoyn®Ambassador
18/11/16 2
Aspecialthanks…
Theevent was sponsored by
Intro20+Tips andTricks inVisualStudio2015
18/11/16 3
Agenda
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
Demo
18/11/16 5
• ProjectPropertiesLaunchOptions
• StartwithStepping• ReturnValues• SetNextStatement• StepIntoSpecific• RuntoCursor• EditandContinue• StepOut
Demo
18/11/16 6
• Debugger.IsAttached• Debugger.Break()• Visualizers(6)• PeekDefinition(Alt+F12)• DebuggerDisplay• DataTips
• Transparency• Pinning• Floating• Comments
• MakeObjectID• AddWatchFromWatch
Demo
18/11/16 7
• ConditionalBreakpoints• HitCountBreakpoints• LambdaDebugging• ImmediateWindow• Debug->StartNewInstance• MultipleProjectLaunch• Restart• TracePoints• EditVariableValue
Demo
18/11/16 8
• ExceptionSettings• CallStackwindow
• Async• ShowParameterValues• ShowExternalCode
• FullScreenmode• Taskswindow
Demo
18/11/16 9
UIDebuggingToolsforXAML
Inspectthelivevisualtreewhiledebugging• Updatesinrealtime• Jumptosource
Livepropertyexplorer• Seeanyelement’spropertiesinrealtime
Selectionbyclickingontheapp
Demo
18/11/16 10
DiagnosticToolswindow
MemoryandCPUgraphsMemorytoolingDebuggerbreakeventhistoryOutputwindowcontent*IntelliTraceevents*
*EnterpriseSKUonly
18/11/16 11
Who Iam
[email protected]@MircoVanini
MircoVaniniMicrosoft®MVPWindowsDevelopmentAllSeen Alliance- AllJoyn®Ambassador
TinyCLR.it
18/11/16 12
Feedback
https://goo.gl/forms/IKZWK2UKc06wr39y2