Dispelling the dark magic: Inside a Ruby debugger
summary
Demonstrates building a usable Ruby debugger from about 60 lines of code: uses Ruby’s TracePoint line event to detect breakpoints, IRB and binding to open a live REPL, and implements cont/step/step-over by tracking stack depth and exiting IRB. Describes production needs: thread-scoped tracepoints require a C extension, line-tracing is slow so Stackdriver flips the tracer on only near targets, and a bytecode analyzer plus whitelist prevents side effects for the Stackdriver Debugger.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:11Dispelling the dark magic: inside a Ruby debugger November 16, 2017
- 30:04Native breakpoint API?
- 32:08Side effects *Object state changes *External side effects
- 34:45Debuggers (the basics) are straightforward!








