GigCityElixir 2023 - Amos King
summary
Asserts that much of engineering time and budget goes to debugging — roughly 30–50% of developer time and 50–75% of project life‑cost — and shows how to dramatically narrow that with runtime tracing. Builds a LiveView text‑racer with an injected bug, attaches Livebook to the remote node, and uses Recon.Trace with match specs and return captures (ex2ms helpers) to find a row width shrinking from 16 to 11. Demonstrates rate‑limited traces that auto‑stop, captures inputs and outputs, and locates the collapsing ex2ms pattern that causes the bug.
AI-written summary · about
chapters (16)
- 0:00Introduction and personal update
- 1:09Importance of shepherding code
- 4:16Debugging and exploring projects
- 6:44LiveView game demo introduction
- 7:51LiveView game demo and bug hunt
- 8:57Challenges with traditional debugging
- 10:00Introduction to Recon tools
- 11:45LiveBook debugging setup
- 13:09Debugging session walkthrough
- 17:29Tracing with Recon Trace
- 21:44Narrowing trace results
- 24:55Analyzing function inputs and outputs
- 27:52Benefits of production debugging tools
- 28:56Understanding match specs
- 30:20Overview of Recon tools suite
- 30:42Resources and closing remarks
