Debugging, Diagnostics and Observability
Visual Studio debugger: Conditional breakpoints, tracepoints, data breakpoints (.NET Core 3+).
Immediate/Watch/Locals windows, Edit and Continue / Hot Reload.
Exception settings (break when thrown), Parallel Stacks/Tasks windows, IntelliTrace (Enterprise).
Debugging decompiled code (Source Link / ILSpy integration).
Code diagnostics: Debug.Assert, Debug.WriteLine, Trace, Stop statement (breaks into the debugger), <DebuggerDisplay>, <DebuggerStepThrough>, <Conditional("DEBUG")>.
Structured logging (Module 30) OpenTelemetry (traces, metrics, logs): ActivitySource and Meter APIs work from VB Application Insights / Azure Monitor
Production troubleshooting: dotnet-trace (CPU traces), dotnet-counters, dotnet-dump (crash/hang dumps), dotnet-monitor, Windows Event Log, WER dumps, PerfView.
Crash handling: global exception handlers (Module 16), user-friendly error dialogs with "copy details", automatic error reporting (Sentry, Raygun, App Insights).