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

  • Home
  • SEARCH
  • 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 923539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:12:36+00:00 2026-05-15T19:12:36+00:00

So, I just moved to new project that is built on Ruby on Rails.

  • 0

So, I just moved to new project that is built on Ruby on Rails. I’m new to it and I’m still learning it. I can debug most of the application code, but it seems I can not debug unit test code and code that is tested.

When I run unit testing in debug mode, I can set a breakpoint in unit test class code, for example where fixtures are added, but breakpoints do not work inside test method code and do not work inside tested code, where they do work during normal workflow. Everyone else in team uses print statement for unit test debugging.

So, is that even possible to debug unit test code in rails?

We are using jruby 1.3.1, rails-2.3.1 and I use IntelliJ IDEA to debug, also I’m ok if I have to switch to eclipse or netbeans.

EDIT: actually, “no, it is not possible” would be a helpful answer as well, if you know it is so. At least I would stop wasting time on it

  • 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-15T19:12:37+00:00Added an answer on May 15, 2026 at 7:12 pm

    Yes, it is possible.

    First of all you must install ruby-debug.

    sudo gem install ruby-debug

    then you write

    debugger

    immediately before the line you wish to start debugging.

    Next step: run your unit tests as you would do normaly.

    At the moment that ruby reaches the line that contain the debugger directive it will stop and show you a console prompt.

    Now you can debug in the same way as you would do with gdb.

    This link explains it in a very nice way: http://blog.nanorails.com/articles/2006/07/14/a-better-rails-debugger-ruby-debug

    I hope this informtaion will be useful to you.

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

Sidebar

Related Questions

Just moved to subversion...from visual studio. I love it already! Can someone briefly explain
I have just moved from phase 1 to phase 2 of a project. In
I just moved over to the Visual Basic team here at work. What is
I have just moved job and gone from VB 6 to VB.Net and found
I'm just learning asp.net mvc and I'm trying to figure out how to move
Just looking for the first step basic solution here that keeps the honest people
We just did a move from storing all files locally to storing them on
I am just beginning the move to the .NET Framework 3.5. I use CruiseControl.NET
We have a JavaScript function named move which does just windows.location.href = any given
Just what the title says, I need to change the password for an existing

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.