~/talk

Practical Debugging

Talkat RailsConf 2017 · 2017-04-25..04-27· [ruby]
github:kddeisz
slides:none on file

Ruby code ships with quick introspection: a live minesweeper demo shows the app running and sometimes winning, not a promise of examples. Concrete techniques include binding.irb to drop into scope, TracePoint to trace every line, ObjectSpace to find an object's allocation site, and module.nesting or object.methods to inspect lookup. One run allocates 70,001 objects for 10,000 updates and a tiny refactor cuts it to 50,001. Vendor gems can be examined and restored with bundle exec gem pristine; examples live on the GitHub repo.

AI-written summary · about

  1. 0:00Intro
  2. 0:13Practical Debugging
  3. 5:31Interface problems
  4. 17:13State problems
  5. 25:00Flow problems
~/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.