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 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

I'm trying to get MSBuild working on a project that has just been moved
I just started working on a new project that already contains a .svn folder
I've just moved a Joomla 1.7 site to a new server. Administration back-end works
Ok just got assigned to a new project and have never dealt with Javascript
I've got a big-ish project that needs a lot of work on a new
I've finished a personal project now just going through my code cleaning things up.
Just got a new website project for my company internal use. The whole website
I am going to start a new C++ project that will rely on a
I just moved a project from localhost over to my remote server, and noticed
I just moved my website (asp.net) to the live environment. I realized they are

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.