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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:37:34+00:00 2026-05-13T22:37:34+00:00

Ruby-debug is getting hung up by breaking on the break ruby reserved word on

  • 0

Ruby-debug is getting hung up by breaking on the “break” ruby reserved word on line 94 activesupport-2.3.5/lib/active_support/callbacks.rb.

  def run(object, options = {}, &terminator)
    enumerator = options[:enumerator] || :each

    unless block_given?
      send(enumerator) { |callback| callback.call(object) }
    else
      send(enumerator) do |callback|
        result = callback.call(object)
        break result if terminator.call(result, object) # This line is the culprit
      end
    end
  end

I know break is a reserved word in Ruby and I’m surpirsed that the ruby-debug is breaking on the word “break” for each ActiveSupport callback. This has rendered almost all of my debugging useless as the callback is triggered very frequently. I am no longer able to run any of my rspec tests as the callback breakpoint is triggered many times for each spec.

Here is a list of all of my currently installed gems: http://pastie.org/854538

Update:
I tried removing ruby-debug and ruby-debug-base and now I get the following message when ever I run my specs. I am reinstalling these gems as I need them.

debugger statement ignored, use -u or --debugger option on rspec to enable debugging

I do not know how to get around this. Any ideas?

  • 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-13T22:37:35+00:00Added an answer on May 13, 2026 at 10:37 pm

    I found out why this is happening. I looked at what method was responsible for triggering the callback and I realized it was one of my own with a “debugger” break point in it. I was just confusing to see the debugger break in ActiveSupport::Callbacks. My debugger break point was at the last line of the method so the debugger naturally went to the next executable line which was in ActiveSupport::Callbacks.run. Thanks Igal for the help with this.

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

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Maybe this article can help you. It show how to… May 16, 2026 at 11:14 pm
  • Editorial Team
    Editorial Team added an answer Delete the eclipse folder. That will be enough. You won't… May 16, 2026 at 11:14 pm
  • Editorial Team
    Editorial Team added an answer I believe something along these lines will work: <TD align="center"… May 16, 2026 at 11:14 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am now trying to learn ruby-debug gem, but there are many jargons I
I am just starting to write ruby rails. I wrote a controller but is
I am using Netbeans 6.8 version and Ruby 1.9.1 installed on Windows XP. I
I'm new to Ruby coming from Java. I'm trying to make a http get
Getting a 'marshal data too short' error when trying to install the mysql gem
I'm not exactly sure how to properly debug this but have tried a few
I am trying to install a ruby gem called activeldap, however, it won't let
I'm running Rails 2.3.3 application which is deployed with passenger/mod_rails with ruby-enterprise-1.8.6-20090610 and apache
I am getting this error in maybe one out of 50-100 requests. I am
I've somehow broken my ruby configuration, and I'm not sure how to fix it.

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.