Ask A Question

Notifications

You’re not receiving notifications from this thread.

Help to debug inside Jumpstart

Alex asked in 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

Reply

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.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,584+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.