Implementing Web Console
summary
Covers implementation of the web-console gem used in Rails to run Ruby code in any binding via a web UI. Explains how Ruby exceptions and backtraces are turned into bindings, and how the gem uses the DebugInspector and TracePoint C APIs (and handles JRuby) to support executing code at those frames.
AI-written summary · about
chapters (12)
- 0:00Start
- 0:01Implementing Web Console
- 9:08How does Web Console work
- 19:52Binding#irb
- 21:07Binding console
- 22:50Debug Inspector API (CRuby)
- 29:47Rails 6
- 32:54Binding#console
- 33:27Nicer UX
- 34:15Binding Reaping
- 34:34Optional Bindex
- 34:47Rack Application for Authentication
related talks
38mDispelling the dark magic: Inside a Ruby debugger
16mBuilding interactive Ruby gem tutorials with Wasm
33mThe Ruby Racer: Under the Hood
34mHijacking Ruby Syntax in Ruby
35mWriting web application in Ruby
33mWeb applications with Ruby (not Rails)
38mPractical Debugging
33mTutorialKit.rb: interactive Ruby gem docs powered by Wasm
