Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Debug.gem - Ruby's New Debug Functionality

Ruby Central via YouTube

Overview

Explore Ruby's new debugging functionality in this RubyConf 2021 talk by Koichi Sasada. Discover the advantages of ruby/debug, a completely rewritten debugger for Ruby 3.1, including its speed, remote debugging capabilities, native VSCode integration, and support for threads and Ractors. Learn about basic and advanced features through live demonstrations, such as setting breakpoints, controlling the debugger from within programs, and step-by-step execution. Gain insights into seamless integration with VSCode and Chrome browser, postmortem debugging of dead Ruby processes, and record-and-replay debugging with backward stepping execution. Understand the performance improvements and acknowledge the contributors behind this powerful new tool for Ruby development.

Syllabus

Intro
About Koichi Sasada
What is a debugger?
Ruby's existing debuggers
Why create yet another debugger?
debug.gem
Demo: Basic usage
Basic features
Set a breakpoint
Control debugger from the program by binding.break do: expr
Step execution Step-in, Step-over, Step-out
Advanced features
Demo: Seamless integration with VSCode/Chrome browser
Demo: Start VSCode for debugger frontend
Demo: Postmortem debugging Debug dead Ruby process
Demo: Record and replay debugging Backward stepping execution
Performance
Acknowledgements
Conclusion
Thank you for your listening!

Taught by

Ruby Central

Reviews

Start your review of Debug.gem - Ruby's New Debug Functionality

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.