Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails test file debugging in Komodo doesn't work when ruby-debug is installed

#2895

You can debug test files in Komodo by setting the current directory
to /test. Komodo used to stop at breakpoints, but on systems
that have ruby-debug-cli or ruby-debug-ide installed, it now
ignores the breakpoints, and emits a large traceback that starts like so:

INTERNAL ERROR!!! You have a nil object when you didn't expect it!
The error occurred while evaluating nil.has_key?

c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug/command.rb:62:in `method_missing'

...

The problem is that the framework has loaded ruby-debug, even though another
debugger using ruby-debug-base is already in effect.

Reference Komodo bug http://bugs.activestate.com/show_bug.cgi?id=83676

Reported by ericp (at activestate) · July 9th, 2009 @ 07:02 PM

State: invalid
Milestone: 2.3.9
Assigned to: nobody
Importance: none

Activity

  1. ericp (at activestate)
    ericp (at activestate)
    • Tag changed from debug, komodo, testunit to patch

    Here's a patch --

    July 9th, 2009 @ 07:08 PM

  2. ericp (at activestate)
  3. Michael Koziarski
    Michael Koziarski
    • Milestone changed from 2.x to 2.3.4

    August 3rd, 2009 @ 06:11 AM

  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.3.4 to 2.3.6

    [milestone:id#50064 bulk edit command]

    September 11th, 2009 @ 11:04 PM

  5. Rizwan Reza
    Rizwan Reza
    • Tag changed from patch to bugmash, patch

    May 16th, 2010 @ 02:41 AM

  6. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.3.6 to 2.3.7

    May 23rd, 2010 @ 05:54 PM

  7. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.3.7 to 2.3.8

    May 24th, 2010 @ 09:40 AM

  8. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.3.8 to 2.3.9

    May 25th, 2010 @ 11:45 PM

  9. Rohit Arondekar
    Rohit Arondekar

    Any updates to this ticket? Does the issue still exist on Rails 2.3.8 or Rails master?

    June 19th, 2010 @ 05:16 PM

  10. ericp (at activestate)
    ericp (at activestate)

    The code in master hasn't been changed, but when I run
    a cloned master with ruby 1.8.6 I can't duplicate
    the problem while debugging both the app and a test.

    This was on a freshly built Fedora 10 box, with my
    own compiled Ruby 1.8.6. I would still prefer the
    code to be patched though.

    June 21st, 2010 @ 06:59 PM

  11. Rohit Arondekar
    Rohit Arondekar

    ericp, can you try the same with 2.3.8 or 2-3-stable branch?

    If the issue can't be reproduced I think it's best to close the ticket.

    June 22nd, 2010 @ 06:35 AM

  12. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid

    ericp, I'm closing the ticket. If you can reproduce the issue just make a comment and I'll re-open.

    June 23rd, 2010 @ 02:09 PM