Bugs: Browse | Submit New | Admin

[#26785] ruby-debug doesn't stop at some breakpoints in rails 2.3.2 migration files

Date:
2009-07-29 11:22
Priority:
3
Submitted By:
Roman Chernyatchik (chukovskij)
Assigned To:
Rocky Bernstein (rockyb)
Category:
ruby-debug
State:
Open
Summary:
ruby-debug doesn't stop at some breakpoints in rails 2.3.2 migration files

Detailed description
I use rails 2.3.2 
I have simple migration file:

############
class CreatePeople < ActiveRecord::Migration
  def self.up
    2 / 0 # breakpoint is here
  end

  def self.down
  end
end
############

If I run "db:migrate" using rdebug-ide debugger will not stop on "2/0" line, but code will be executed.
The most strage thing is that I can stop on breakpoint a bit earlier in stacktrace and then I can manually step
to "2/0". E.g :

############
# activerecord-2.3.2/lib/active_record/migration.rb
...
        result = nil
        time = Benchmark.measure { result = send("#{direction}_without_benchmarks")} #break point is here
...
############
------------
But the way - I'm using RubyMine 1.5 and

ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.6)

P.S: Thank you guys for your great project =)

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-11-10 16:46
Sender: Rocky Bernstein

I'm sorry but this is too vague and not easily reproducible. 

It may also be out of date. There's no way to tell if this is
a user error a bug in ruby-debug.

Date: 2010-04-18 12:45
Sender: Rocky Bernstein

In order to fix this, it would be helpful to isolate the problem
a little bit more. Can you recreate this problem using without
ActiveRecord?

Can you recreate the problem without using ruby-debug-ide? 

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
resolution_idNone2010-11-10 16:46rockyb
assigned_tonone2010-11-10 16:46rockyb