Pry
debug
Our great sponsors
Pry | debug | |
---|---|---|
35 | 27 | |
6,705 | 1,064 | |
0.4% | 2.3% | |
6.7 | 8.5 | |
5 days ago | 8 days ago | |
Ruby | Ruby | |
GNU General Public License v3.0 or later | BSD 2-clause "Simplified" License |
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.
Pry
-
Ruby 3.3
that's surprising considering `pry`[1] is such an amazing debugger IMO.
-
Enhancing development with REPLs - A practical guide
All of my recent tutorials and projects were primarily managed using the default Ruby REPL, irb, and I must say it's been nothing short of amazing. However, what ultimately prompted me to switch to Pry was its offering of better defaults. But what exactly does that mean? Let me demonstrate:
-
Debugging Help
For older versions: Pry Gem
-
Anyone else working through Michael Hartl's Learn Enough RoR Series that might be able to help me with a failing unit test?
To do that, I would install `pry` into your rails project and then use it look around right before your test fails.https://github.com/pry/pry
- I made a tool to help cleanly copy & paste code from irb/pry sessions
-
shell-maker: Make your own shell in 15 lines of elisp (batteries included)
This means I can be editing a shell script and easily inject arbitrary regions into a shell buffer for immediate testing (point never leaves the window where I am editing, and I can view the shell output in an adjacent window). This is similar to what Robe does with Pry within an inferior Ruby process using comint.
-
Building GitHub with Ruby on Rails
https://pry.github.io/ - also a lot of features from Pry have made it into the default IRB these days, but I still use pry. I don't know the equivalent commands in IRB.
-
Is parallel threading never going to be a thing?
For debugging, while not multi-threaded, to my knowledge, is the pry gem for debugging. There are a few different flavors, for instance, my favorite is pry-byebug.
-
Top 5 Ruby on Rails Gems
Github Link : https://github.com/pry/pry
-
It’s a bit buggy, but it’s been so nice to use!
Fleet does not currently support ruby.
debug
-
Ruby 3.3
what is ruby debug not able to do that you want it to do?
a nice ide integrated experience:
https://code.visualstudio.com/docs/languages/ruby#_debugging...
-
Connecting Debugger to Rails Applications
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?
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 :-)
-
Debugging Silent Create Action Failures in Rails
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
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
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?
While pry is nice Ruby 2.6+ includes the debug gem in the standard library which avoids the need to install another dependency.
-
Ruby Debug support in Nova editor
We just rolled out a new extension called Ruby Debug that connects the editor to the debug gem through the debugger protocol. It's possible to run the debugger both in launch and attach mode, so you can use it with Rails or whatever application you like.
-
From byebug to ruby/debug
Switching to a new debugger and potentially changing your debugging process could be scary. So I hope this post can help you get familiar with ruby/debug and determine whether to switch to it.
-
Setup ruby/debug with VSCode
Do you know Ruby's official debugger ruby/debug provides out-of-box integration with VSCode? If you haven't tried it yet or having difficulty making it work, I hope this short post will help you set it up.
What are some alternatives?
Byebug - Debugging in Ruby 2
irbtools - Improvements for Ruby's IRB console 💎︎
Hirb - A mini view framework for console/irb that's easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.
pry-remote - Connect to Pry remotely
vimspector - vimspector - A multi-language debugging system for Vim
nvim-ts-context-commentstring - Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.
ruby - The Ruby Programming Language
.dotfiles - My dotfiles
vim-dirvish - Directory viewer for Vim :zap:
dotfiles - Settings for various tools I use.
Ruby on Rails - Ruby on Rails