~/talk

Debugging Elixir Code - The Tools, The Mindset

Talkat ElixirConf EU 2021 · 2021-09-09..09-10· [testing]
links:none on file
slides:none on file

Shows how Elixir and Erlang tools like Observer, the Erlang debugger, dbg/:redbug/rexbug, Phoenix LiveDashboard, io.inspect and OpenTelemetry combine with practical tweaks — increasing Cowboy/ExUnit/Ecto timeouts — and then builds a macro-based def wrapper that injects iex.pry inserted breakpoints between lines. Adds a ETS flag plus next/resume helpers so next steps advance line-by-line. Prototype works for stepping and inspecting values but needs recompilation, misses macro-expanded locations and struggles with nested anonymous functions.

AI-written summary · about

  1. 0:00Introduction
  2. 0:56About me
  3. 1:39Attitudes
  4. 2:01Stack Overflow
  5. 2:18Print to Console
  6. 2:41Hack Everything
  7. 3:43I Dont Need This
  8. 4:19You Dont
  9. 5:11Takeaways
  10. 6:40Good Design Choices
  11. 6:56Tools
  12. 7:28Observer
  13. 7:42Bug
  14. 8:56Elixir Tools
  15. 9:56Debugging at Code Level
  16. 12:30Debugging in Elixir
  17. 13:28IEX Debugging
  18. 15:24Timeouts
  19. 16:45IoInspect
  20. 19:26Convenience Macro
  21. 22:00Overwrite def
  22. 22:42Using macro
  23. 23:44Safe override
  24. 24:46Function transformation
  25. 25:42Simplified implementation
  26. 26:16The line thing
  27. 27:02The next line
  28. 28:03The pry macro
  29. 29:29Next Helper
  30. 30:03Obstacles
  31. 31:19Macro Expansion
  32. 32:28Conclusion
  33. 33:39Resources
  34. 34:23Questions
~/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.