All threads / Dubugging
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

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.

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.

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.

Do the check several times

And always make exceptions.

Join the discussion

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

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

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

    logo Created with Sketch.

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

    © 2022 GoRails, LLC. All rights reserved.