Coder Social home page Coder Social logo

ruby_debug_tutorial's Introduction

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. :)

ruby_debug_tutorial's People

Contributors

radanskoric avatar

Stargazers

Deivide Oliveira avatar Thomas W. Holt Jr. avatar Scott Bearden avatar

Watchers

Fernando Blat avatar  avatar

Forkers

indygwyn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.