-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binding.pry doesn't work #24
Comments
I can try to find how to do it. If I do want to support I think I have to study it and rethink again. |
Thanks for at least thinking about it. 👍 |
For others facing this issue: I'm using the |
I peek into the https://github.com/alexch/rerun/blob/master/lib/rerun/runner.rb#L7 def self.keep_running(cmd, options)
runner = new(cmd, options)
runner.start
runner.join
# apparently runner doesn't keep running anymore (as of Listen 2) so we have to sleep forever :-(
sleep 10000 while true # :-(
end I think this is impossible with Reopen this if you have further idea. |
@ranmocy Can guard-rails at least output some sort of warning when it finds pry? At the moment there is no indication as to what is going wrong, the call is just skipped. I just spent a few hours trying to track down the issue and I imagine it will be the same for others. |
@gerrywastaken guard can only notice pry when user run in |
try using gem pry-remote |
For those who might be interested, I implemented a solution using https://github.com/atd/guard-rails I don't care about blocking the whole |
This issue doesn't seem to be a problem any more.
Should the documentation in the |
I'm having this same issue as I'm upgrading from Rails 5 -> 6 🤔 |
When starting rails server on the console, I can add a
binding.pry
wherever I want it, hit reload, and then execution is halted at this line and I can interact with pry in the given context.With Guard-Rails, this doesn't seem to work. The
binding.pry
is recognised, but simply omitted, which means that execution is continued without giving me the chance to interact with pry.The output (which proves that
binding.pry
is recognised, see=> 5: - binding.pry
):This question on stackoverflow asks the same, and is over a year old already:
http://stackoverflow.com/questions/14153585/guard-rails-not-providing-repl-for-binding-pry
It would be really useful to have the rails output and guard input in the same window, but without pry, I'm not able to do my work.
Thanks a lot for help.
The text was updated successfully, but these errors were encountered: