Ask A Question

Notifications

You’re not receiving notifications from this thread.

Dubugging

Dishan Dale asked in Rails

Is there a method to debug hosted ruby on rails application and check the request and response object

Reply

Typically you'll install an error tracking tool like Airbrake, Sentry, Rollbar, etc and then inspect the logs to see what happened. You can then try and reproduce the error in your development environment.

Sometimes using something like devise_masquerade is helpful so you can login to a problem account and see what's going on first-hand.

Reply

Another useful method for spin the wheel displaying object values is inspect, especially when working with arrays or hashes. This will print the object value as a string.

Reply

Having the ability to join in to a problematic account and see dordle its activity firsthand is a big help in troubleshooting, and tools like devise masquerade make this possible.

Reply

Do the check several times

Reply

And always make exceptions.

Reply
Join the discussion

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.