Skip to content

radanskoric/ruby_debug_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Ruby Debug Tutorial

This is an introduction tutorial to Ruby debugging, inside the ruby debugger itself. The instructions are woven through the code so you're learning to use the debugger as you're using the debugger. It's all very meta.

All you need is a working installation of Ruby 3.3+.

To start the tutorial, first clone this repo:

git clone https://github.com/radanskoric/ruby_debug_tutorial.git

And then run the following command in your terminal:

ruby start.rb

Don't read the source code because it will spoil the fun. :)

Did I just ask you to run a piece of code without inspecting it?? I guess I did. Yes, I know, it's a lot to ask.

If you don't trust me (I don't mind, it's a wise choice) or just don't have Ruby 3.3+ installed, you can also use Docker. To do that, instead of running rdbg directly, run:

./run_with_docker.sh

That script will download a ruby 3.3 official image and run the code inside it. Reading the source of run_with_docker.sh and Dockerfile will not spoil the fun, so please go ahead. :)

About

Interactive Ruby Debug Tutorial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published