Binding.pry in controllers with passenger

I try to use binding.pry in the controller file, and when I reload the page, the passenger is stuck on it, but irb does not work (it appears, but is stuck. It looks like the passenger wrote the line and that’s it). On the passenger site we can read that irb is for the business plan, but if we use binding.remote_pry ( binding.pry, ignored by rails 3 ), it works fine. Of course, binding.pry is great for WEBrick. The question is, if I'm right or can I use bind.pry with the passenger, but do I need to write something somewhere to make it work?

The second goal of this topic is to put the link above, and this for the following newbies. I spent a lot of time to find the answer why it does not work and what to do to make it work.

By the way, can we somehow debug / live debug controllers / views? I found this one but have not tried it.

I use rails 4.

+6
source share
1 answer

When execution stops at binding.remote_pry on the passenger, it will wait until you connect to the debugger using the remote client. From a shell on the same machine, just run:

 pry-remote 
+6
source

Source: https://habr.com/ru/post/974645/


All Articles