Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:32:20+00:00 2026-05-26T08:32:20+00:00

I wonder if we can have in Rails an interactive shell when exceptions occurs

  • 0

I wonder if we can have in Rails an interactive shell when exceptions occurs accessible directly in the browser (so interacting with server via javascript)

I love this functionality bring up by Werkzeug. Examples of the Werkzeug Debugger :

  • http://werkzeug.pocoo.org/docs/debug/#enabling-the-debugger
  • http://flask.pocoo.org/docs/quickstart/#debug-mode

It can be great if we can do the same in Rails. Do you know some ways to archive this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:32:21+00:00Added an answer on May 26, 2026 at 8:32 am

    You can catch all exceptions in ApplicationController and do whatever you want, like start a breakpoint.

    if Rails.env.development?
      rescue_from Exception, :with => :fire_up_debugger
    end
    
    private
      def fire_up_debugger(e)
        print "An exception has happened: #{e.message}\n\n#{e.backtrace.join("\n")}"
        debugger # or binding.pry if you use pry
      end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder if anyone can help - I have this error showing recently when
wonder whether someone can help me with the following one... I have a struct
I have a bit of a pickle here and wonder if anyone can give
I wonder if 2 objects can have the same key name? They wouldn't be
Using PHPUnit, I wonder how we can have multiple expectation from the same stub/mock.
I have something like this $.ajaxSetup({ cache: false }); I am wonder can you
I wonder how can I export a Visual Studio C++ project to Qt? I
I am going to develop ICQ client and I just wonder where can I
Out of curiosity, I wonder what can people do with parsers, how they are
I'd like to start coding for NVIDIA 3D Vision and wonder where can I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.