New Discussion

Notifications

You’re not receiving notifications from this thread.

Help to debug inside Jumpstart

1
Rails

Hi,

I am currently developing my client's Jumpstart application and I am seeking advice on how to effectively debug any issues that may arise during the development process.

I tried to use binding.irb and binding.pry inside actions, also in before_action. Restart does not help.

web | 8: before_action do
web | 9: binding.pry
web | => 10: puts "Hello, world!"
web | 11: end
web | 12:
web | 13: # GET /employees
web | 14: def index
web | 15: @pagy, @employees = pagy(Employee.sort_by_params(params[:sort], sort_direction))

Any ideas?

best,

Alex

Hey Alex,

You'll either want to run the rails server in its own terminal (without bin/dev) or switch to using overmind instead of foreman. I personally use overmind and it lets you connect to each process and interact with them, but foreman cannot.

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.