Go debugging
Goroutine leaks, channel deadlocks, nil-interface gotchas, data races, and context cancellation that doesn't propagate.
13 guides
Debugging guides
Diagnosing and Fixing Goroutine Leaks in GoGo · AdvancedDebugging Go Channel Deadlock: All Goroutines Are AsleepGo · AdvancedGolang Interface Nil vs Pointer Nil: Why They're Not Equal and How to DebugGo · IntermediateDebugging Go JSON Unmarshal Unexpected Type ErrorsGo · IntermediateDebugging Go Context Cancellation That Doesn't PropagateGo · IntermediateGo Panic/Recover Not Catching: Why Your recover() Call Is Silently FailingGo · IntermediateDebugging Go Test Race Conditions with t.Parallel()Go · IntermediateDebugging go.mod replace Directive ErrorsGo · IntermediateGolang sync.Mutex Deadlock: Detection and ResolutionGo · AdvancedFixing 'Type Does Not Satisfy Constraint' in Go GenericsGo · AdvancedDebugging Lost Error Context in Go: When %w and errors.Is/As FailGo · IntermediateDebugging Go Data Race Conditions: From Detection to FixGo · AdvancedDefer Captures Arguments at Call Site, Not Execution TimeGo · Intermediate