Debugging Ruby

Madiwa Simon
2 min readJul 5, 2021


Simple ways to debug your code. (this is only my personal experience)

I haven’t met a great programmer that never debugged their entire life. That is why I wanted to make a blog about ways I debug with ruby. This is mostly for beginners to have easy access and tutorial.

  1. Pry is a runtime developer console and IRB alternative with powerful introspection capabilities. Pry aims to be more than an IRB replacement. It is an attempt to bring REPL driven programming to the Ruby language. CLICK HERE to learn more.

2. Byebug is a simple to use and feature rich debugger for Ruby. It uses the TracePoint API for execution control and the Debug Inspector API for call stack navigation. Therefore, Byebug doesn’t depend on internal core sources. Byebug is also fast because it is developed as a C extension and reliable because it is supported by a full test suite. CLICK HERE for more info.

This are all the resources you need for the 2 most common debugger for ruby.