~/talk

Debugging Tips and Tricks with Visual Studio

Talkat Code Quality Conference 2022 · on Wednesday, 2022-08-24· [developer-experience]
slides:none on file

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

  1. 0:00Start
  2. 7:22Start Debugging
  3. 8:08Diagnostic Tool
  4. 8:58Gpu Threads
  5. 10:20Attach Unity
  6. 11:27Step Overs
  7. 14:49Quick Watch
  8. 15:30Visualizer
  9. 15:48Xml Visualizer
  10. 16:39Exception Settings
  11. 18:18Conditional Breakpoint
  12. 18:41Conditions
  13. 21:21Continue Code
  14. 25:34Force Run to Cursor
  15. 25:55Debugging Menu
  16. 27:15Export these Breakpoints
  17. 28:14Attach To Process
  18. 31:50Data Tip
  19. 33:13Locals Window
  20. 33:59Add an Item To Watch
  21. 35:21Immediate Window
  22. 37:17The Debugger Display Attribute
  23. 37:32System Diagnostic Debugger Display
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.