Pry-Remote with Pow on Rails 4

大兔子大兔子 提交于 2019-12-04 08:19:05

I ran into a similar issue as you, maybe the same one. I was able to resolve it by uninstalling the pry-byebug gem (version 3.1.0 before the uninstall).

If you want to give this a try, you can remove the gem from your Gemfile and run bundle install. You may also need to restart your Pow server using touch tmp/restart.txt.

What I'm running (for comparison):

  • Pow 0.5.0
  • ruby 2.2.1p85
  • Rails 4.2.0
  • OSX 10.10.2

In your gemfile try: gem 'pry-byebug', '~> 1.3.3'

With pry-byebug 1.3.3 I was able to get pry-remote to work. However in the pry-remote console I was not able to see any return value and had to manually do something like this:

Pry.config.print = Proc.new { |output, val| output.puts "=> #{val.inspect}" }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!