Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
285 views

Problem: I cannot paste multi-line code as pry tries to execute every line. Expected behavior: [1] pry(main)> %w[a b c] .map(&:to_sym) => [:a, :b, :c] [2] pry(main)> Actual behavior: [1] ...
Alexey Zalyotov's user avatar
1 vote
1 answer
1k views

I would like to disable autocomplete in Pry. How to do it? I'm using it in Rails console(from Emacs/inf-ruby) and it is very slow and annoying in my legacy app. Related question: Disable irb ...
Nikita Fedyashev's user avatar
2 votes
3 answers
867 views

byebug doesn't seem to be able to handle multiple lines of code. Example I put byebug into the controller, and the next lines of code are (these could be anything, just an example here): ...
stevec's user avatar
  • 55.2k
4 votes
1 answer
846 views

Suppose we have pry installed, open the rails console, and run times = [1, 5, 10, 30, 72].sample(1)[0] nums = *(1..72) num_sample = nums.sample(times) Evaluation stops after line 2 (since the output ...
stevec's user avatar
  • 55.2k
2 votes
1 answer
91 views

I'm working with a local library (gem), let's call it B, inside my rails application A (Rails version 6.0.2.2) In A's Gemfile, I require B via: gem 'B', path: '../B' When I do rails c with pry, I ...
platypus's user avatar
  • 1,205
2 votes
1 answer
369 views

I recently discovered that ls in pry can take an argument like so: ls -l. My initial question is what the -l part actually is - it is clearly not a string or symbol, and there is no local variable ...
johansenja's user avatar
0 votes
0 answers
534 views

I'm using rails-pry to create a breakpoint with a binding.pry statement. This has worked just fine for just about ever. However now there's this fun new error message I'm not even sure how to being ...
Dylan Pierce's user avatar
  • 4,688
1 vote
1 answer
1k views

How can replace irb and rails console with pry/pry-console globally for every project without having to include it in a project?
Bhushan Lodha's user avatar
0 votes
2 answers
2k views

I have this simple rails code and something weird is happening. As you can see params.nil? is true and it's still calling the else part. What am I missing here? Pry Session 5: def ...
user avatar
1 vote
1 answer
1k views

I tried the approach with tty: true stdin_open: true inside docker-compose.yml and attaching to the container id (following http://www.chris-kelly.net/2016/07/25/debugging-rails-with-pry-within-a-...
Bogdan Popa's user avatar
  • 1,099
1 vote
1 answer
2k views

I am not familiar with Ruby, but I am anyway trying to install and test iQvoc ( https://github.com/innoq/iqvoc ). After some initial problems I managed to install it with heroku. I am trying now to ...
K3it4r0's user avatar
  • 315
3 votes
3 answers
1k views

I have an image blob written to a field in the db, but I don't want to see that output in a console when I view the user object. I don't need the output changed or modified for the functioning of the ...
trh's user avatar
  • 7,359
6 votes
1 answer
3k views

I'm confused about which gems need to be installed to correctly run Pry in a Rails 4.2 project. I seemed to be doing fine until recently. For some reason, binding.pry now seems to spit up whenever I ...
Scro's user avatar
  • 1,463
1 vote
1 answer
2k views

For some reason when I set a breakpoint using binding.pry, the program ends up halting at a totally different (and alien looking!) place. Am I doing it wrong? Gemfile (shortended) gem "rails", "~>...
Yan Foto's user avatar
  • 11.5k
4 votes
2 answers
1k views

I am using pry for rails console. Whenever I evaluate some value in console, NoMethodError is raised in bindings_equal?, that is a method of pry-stack_explorer gem. The input and output is as ...
谷口昂平's user avatar
5 votes
2 answers
2k views

When I use the rails console on my current laptop (on any rails project), I get the following error when the console starts up. Rails console error: Error loading ~/.pryrc: Command: `continue` not ...
darkmoves's user avatar
  • 328
2 votes
2 answers
1k views

When I put the following line into ~/.pryrc it doesn't work as expected: Pry.config.prompt_name = Time.now.to_s Every prompt is equal to the time that Pry was launched. How do I update the prompt ...
New Alexandria's user avatar
3 votes
0 answers
118 views

So regardless of my console history, if I'm in a pry session, and if I press the up stroke, it should show what my last command was. Instead, it shows exit, and will execute exit if I press enter. ...
Trip's user avatar
  • 27.2k