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

Related Questions

Possible Duplicate: Ruby On Rails 3 and Webrick issue $ rails server /Users/Vineeth/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `require':
I'm trying to debug simple ruby file in Aptana 3. class HelloWorld def initialize()
I am having a problem getting a Ruby script to work correctly when run
I am getting the following error when migrating to Heroku. Installing hoe (2.9.4) /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:170:in
Possible Duplicate: ruby-debug with Ruby 1.9.3? I had heard rumors that ruby 1.9.3p125 has
When I try to install ruby-debug-base19x gem for debug my application using the RubyMine
I recently followed some instructions with RVM to install ruby-debug and I think it
I am trying to use ruby-debug to debug my specs. When i do this,
I want to use Rubymine's IDE debugger to debug a ruby process running in
When I try to debug rails 3.1 (ruby 1.9.2_p290) with RubyMine 3.2.4 on OSX

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.