debug VS Ruby on Rails

Compare debug vs Ruby on Rails and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
debug Ruby on Rails
28 467
1,081 54,894
2.0% 0.7%
8.5 10.0
10 days ago 3 days ago
Ruby Ruby
BSD 2-clause "Simplified" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

debug

Posts with mentions or reviews of debug. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-13.
  • Metaprogramming in Ruby: It's All About the Self (2009)
    3 projects | news.ycombinator.com | 13 Apr 2024
    I've written Ruby for coming up on 20 years, so to be honest I haven't paid attention to what is written on that subject in recent years.

    Bundler shouldn't be running inside a trap context, but you might be running into a situation where standard input/output from the actual process triggering your breakpoint has been redirected. In that case, ruby-debug[1] is a good option, as you attach to it from outside[2]. Basically, run "rdbg --open yourscript.rb" and then use rdbg -A from another terminal.

    You use Pry remotely too[3] if you prefer.

    [1] https://github.com/ruby/debug

    [2] https://github.com/ruby/debug?tab=readme-ov-file#remote-debu...

    [3] https://github.com/Mon-Ouie/pry-remote

  • Ruby 3.3
    11 projects | news.ycombinator.com | 24 Dec 2023
    what is ruby debug not able to do that you want it to do?

    https://github.com/ruby/debug

    a nice ide integrated experience:

    https://code.visualstudio.com/docs/languages/ruby#_debugging...

    https://github.com/ruby/vscode-rdbg

    https://code.visualstudio.com/docs/editor/debugging

  • Connecting Debugger to Rails Applications
    4 projects | dev.to | 19 Dec 2023
    Execution is paused at the breakpoint (which has a little arrow pointing at it). You can then enter commands to the rdbg prompt to control the debugger. For a list of the different commands you can use, visit the documentation for the debug gem.
  • Ask HN: What side projects landed you a job?
    62 projects | news.ycombinator.com | 3 Dec 2023
    In 2017, I wrote a toy language called Goby[1] to learn how Ruby works. A few folks contributed quite a bit to it and one of them later referred me to my previous job (as a backend developer).

    Fast-forward to 2021, I got interested in debugging tools so I started contributing to the then newly created Ruby debugger[2]. In less than a year I opened more than a hundred PRs and became the 2nd biggest contributor of it. And that eventually landed me a job to work on Ruby's development tools, like LSP servers, REPLs, and of course, the debugger :-)

    [1] https://github.com/goby-lang/goby

    [2] https://github.com/ruby/debug

  • Ruby Tip – Interactive debugging without the need for gems
    1 project | news.ycombinator.com | 22 Nov 2023
    Fun fact, Ruby as a single-threaded language is how most people experience it, but Ruby has a rich cooperative multitasking called Fibers that hopefully is getting more exposure, in amongst a bevy of competing implementations and other also-ran concurrency primitives (besides the usual contenders like Threads, Process fork, foreman that just runs several processes alongside one another...)

    https://github.com/ruby/debug/issues/486#issuecomment-157531...

    If you want to use debugging and multi-threaded or multi-fiber Ruby at once, you can! You just have to get a bit creative. I always refer back to this thread on the Ruby `debug` gem (though the advice applies to any other REPL you can use) about applying a Mutex. You can use the built-in Fiber.blocking to prevent other fibers from running at the same time as yours, or you can use a Mutex to just ensure that you don't hit the debugger multiple times in the same process IO that would mean you've got multiple REPLs all grappling for the StdIO at once.

    For a long time Ruby dev who almost never did concurrency unless it was facilitated by the OS, or before being exposed to it directly in other languages like Go, the Ruby "super power" remains intact, it's just a bit more mysterious with the concurrency stuff added. Ruby has amazing diversity in its concurrency tools, which is a nice way of saying "the language authors decided not to pick a king concurrent runtime/winning gem whilst all of the competing implementations were all a bit nascent and un-fully-formed!"

    I like the bruno/fiber-scheduler but it looks like it is not the winner. It should be easy to switch to another fibers implementation, I think async is the crown champion now, but I still haven't been motivated to switch - the fiber-scheduler that is named fiber-scheduler has been good enough for me, despite shortcomings!

  • Debugging Silent Create Action Failures in Rails
    2 projects | dev.to | 9 Nov 2023
    Debuggers are powerful tools that allow you to step through your code line-by-line, inspecting variables and understanding the flow of execution. Using debuggers is a whole topic unto itself, and getting into the weeds with that would balloon the scope of this post. If you want more information on using them, I recommend reading the README for rdbg. This is the debugging solution for modern Ruby/Rails development. It's in Ruby's stdlib as of v3.1, and Rails 7+ apps include it in the Gemfile by default. I also recommend this section of the Rails guides for exploring how to use the debug gem with Rails applications.
  • Intro to Trace Inspector that displays Ruby trace logs with pretty UI
    2 projects | dev.to | 24 May 2023
    Trace Inspector, a tool that displays Ruby trace logs with pretty UI while debugging in VS Code, has recently landed in debug.gem. debug.gem is a Ruby standard debugger library and the default debugger in Rails. Since debug.gem supports VS Code, you can debug Ruby programs in vscode-rdbg.
  • Debugging Help
    3 projects | /r/ruby | 17 May 2023
    For newer versions of Rails (introduced in v7): Debug Gem
  • Anyone else working through Michael Hartl's Learn Enough RoR Series that might be able to help me with a failing unit test?
    3 projects | /r/rubyonrails | 17 Apr 2023
    While pry is nice Ruby 2.6+ includes the debug gem in the standard library which avoids the need to install another dependency.
  • What's new in Ruby 3.2's IRB?
    1 project | /r/ruby | 14 Dec 2022
    Have you tried ruby/debug's catch command? You can do catch Exception to achieve the same effect.

Ruby on Rails

Posts with mentions or reviews of Ruby on Rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-31.
  • GitHub Incident with Issues, API Requests and Pull Requests
    1 project | news.ycombinator.com | 5 Apr 2024
    [0] is a my favorite demonstration of it.

    [0]: https://github.com/rails/rails/commit/b83965785db1eec019edf1...

  • Client side Git hooks 101
    2 projects | dev.to | 31 Mar 2024
    Here's a real life example: Imagine a Ruby on Rails app on which a team of developers are working. The code is hosted on GitLab and all the work is coordinated using GitLab issues. In other words: For every commit, there's an associated issue and the issue number acts as a sort of primary key for documentation, time reporting and so forth. This convention has a few advantages, most notably the ability to easily learn more about how, when and by whom features were implemented as well as how this implementation came to be.
  • 16 Best Ruby Frameworks For Web Development [2024]
    6 projects | dev.to | 11 Mar 2024
    Ruby on Rails is regarded as one of the best ruby frameworks. It was the primary language in developing big projects such as Twitter and helped the language boost the community. Often referred to as “Rails,” Ruby on Rails is a web development framework with an MVC control structure and currently running its 6.1 version. The 16-year-old language has dramatically influenced the web development structures and managing databases, web pages, and other components on a web application.
  • More control over enum in Rails 7.1
    1 project | dev.to | 29 Feb 2024
    In Rails 7.1, a new option _instance_methods is introduced, allowing developers to opt-out of the automatic generation of instance methods for enums. When enum is defined with _instance_methods: false, Rails will no longer generate methods like pending?, processed?, etc.
  • Ruby on Rails load testing habits
    5 projects | news.ycombinator.com | 25 Jan 2024
    Rails isn't super opinionated about database writes, its mostly left up to developers to discover that for relational DBs you do not want to be doing a bunch of small writes all at once.

    That said it specifically has tools to address this that started appearing a few years ago https://github.com/rails/rails/pull/35077

    The way my team handles it is to stick Kafka in between whats generating the records (for us, a bunch of web scraping workers) and and a consumer that pulls off the Kafka queue and runs an insert when its internal buffer reaches around 50k rows.

    Rails is also looking to add some more direct background type work with https://github.com/basecamp/solid_queue but this is still very new - most larger Rails shops are going to be running a second system and a gem called Sidekiq that pulls jobs out of Redis.

  • DHH installing Campfire (37s ONCE #1) [video]
    1 project | news.ycombinator.com | 19 Jan 2024
    I'm looking forward to see what extractions from this will land on rails. For example: https://github.com/rails/rails/issues/50454
  • First commits in a Ruby on Rails app
    6 projects | dev.to | 17 Jan 2024
    Here is what strict_loading does (source):
  • Continuous Deployment with GitHub Actions and Kamal
    4 projects | dev.to | 7 Jan 2024
    Kamal is a wonderfully simple way to deploy your applications anywhere. It will also be included by default in Rails 8. Kamal is trivial, but I don’t recommend using it on your development machine.
  • What's Coming in Rails 8
    1 project | news.ycombinator.com | 5 Jan 2024
    Here's the GitHub milestone I've based this article on — https://github.com/rails/rails/milestone/87
  • Rails 8 Plan
    1 project | news.ycombinator.com | 27 Dec 2023

What are some alternatives?

When comparing debug and Ruby on Rails you can also consider the following projects:

Byebug - Debugging in Ruby 2

Roda - Routing Tree Web Toolkit

Pry - A runtime developer console and IRB alternative with powerful introspection capabilities.

Hanami - The web, with simplicity.

vimspector - vimspector - A multi-language debugging system for Vim

Sinatra - Classy web-development dressed in a DSL (official / canonical repo)

nvim-ts-context-commentstring - Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.

Cuba - Rum based microframework for web development.

.dotfiles - My dotfiles

CodeBehind Framework - CodeBehind library is a modern backend framework. This library is a programming model based on the MVC structure, which provides the possibility of creating dynamic aspx files in .NET Core and has high serverside independence.

vim-dirvish - Directory viewer for Vim :zap:

Padrino - Padrino is a full-stack ruby framework built upon Sinatra.