Debugging Tips and Tricks with Visual Studio
summary
Live demo of Visual Studio debugging on a .NET 6 console reproduces a real bug: code builds four Person objects but an index access expects six, causing an IndexOutOfRangeException. Covers pdb generation vs release builds, msbuild artifact layout, stepping, conditional breakpoint with hit counts and log-and-continue actions, pinning data tips and editing in-memory values, the Immediate and Watch windows, DebuggerDisplay attribute to make objects readable, remote attach to process and exporting/importing breakpoints and data tips for colleague handoff.
AI-written summary · about
chapters (23)
- 0:00Start
- 7:22Start Debugging
- 8:08Diagnostic Tool
- 8:58Gpu Threads
- 10:20Attach Unity
- 11:27Step Overs
- 14:49Quick Watch
- 15:30Visualizer
- 15:48Xml Visualizer
- 16:39Exception Settings
- 18:18Conditional Breakpoint
- 18:41Conditions
- 21:21Continue Code
- 25:34Force Run to Cursor
- 25:55Debugging Menu
- 27:15Export these Breakpoints
- 28:14Attach To Process
- 31:50Data Tip
- 33:13Locals Window
- 33:59Add an Item To Watch
- 35:21Immediate Window
- 37:17The Debugger Display Attribute
- 37:32System Diagnostic Debugger Display
related talks
17mFast Focus: Visual Studio Debugging & Diagnostics: Tips & Tricks
05mDebugging - A dive into Breakpoints
01h 01mBeyond step-by step debugging in Visual Studio
56mFuel Your Fixes: Visual Studio Debugging, Powered by Copilot
01h 01mDebugging Tips and Tricks with JetBrains Rider
44mAdvanced developer tips and tricks in Visual Studio
01h 11mThe Forgotten Features of Visual Studio You NEED In Your Life!
52mNew in Visual Studio: CMake Debugger, Better Diagnostics, and Video Games
