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 8280567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:43:26+00:00 2026-06-08T09:43:26+00:00

I am in a situation where I need to step through the controller method

  • 0

I am in a situation where I need to step through the controller method when I run a functional test. I use ruby-debug to debug through my application. My app is a rails 3.1 app which uses ruby-1.8.7 . I can debug my code by using

rails server –debugger OR
rails console –debugger

I can also stop the code by inserting “debugger” in a model and run it’s respective unit test.

But I am not able to do the same thing with the controllers. That is I am not able to stop the code by inserting “debugger” in the methods of the controller and run it’s respective functional test.

Has anyone faced this issue before?

Also I use devise for authentication so I need to add the following lines to my test_helper

class ActionController::TestCase
  include Devise::TestHelpers

  def login_user
    @request.env["devise.mapping"] = Devise.mappings[:user]
    @user.confirm!
    sign_in @user
  end
end

Not sure I that is going to effect the debugger in anyway.

  • 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-06-08T09:43:27+00:00Added an answer on June 8, 2026 at 9:43 am

    I was unable to stop at a debugger inserted in my controller method when I ran the functional tests because I was hitting a before_filter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following situation: I need a container for data with a rowindex. Currently we use
i need to use Progress bar in my application. It takes more than two
This is my situation: i need the code to run in a loop, over
Situation: I need to make an imap client (using java mail api) that if,
this is the situation: I need horizontal scrolling, and table views inside every page.
I am facing a situation and need help. I have two tables: user: user_id
Did you ever have the following situation: you need to store information, but a
I am using EF to access Sql azure. In one situation I need to
I have situation where I need to change the order of the columns/adding new
I have a situation where I need to dynamically build up a list of

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.