nickjj / docker-rails-example

A production ready example Rails app that's using Docker and Docker Compose.
MIT License
941 stars 185 forks source link

binding.pry #73

Closed sergiohc closed 5 months ago

sergiohc commented 5 months ago

I'm having difficulty using binding.pry with docker, can anyone use it?

Note: I'm using WSL too, I don't know to what extent it can influence it, but it's worth considering ^^

I'm using the translator

att

sergiohc commented 5 months ago

I got it with pry-remote

nickjj commented 5 months ago

Hi,

What did you end up doing to get it working? This could help other folks who have similar issues.

sergiohc commented 5 months ago

Of course! no problem



-  ./run bundle:install

-  Add the binding.remote_pry command to the line where the breakpoint will be

-  in another terminal tab, ./run shell

- type **pry-remote** in the terminal

- With the addition of pry-nav, you’ll have access to commands **continue**, **step**, and **next**, to navigate through your code.