This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
My project (uses FXRuby) has no bug. But debugger freezes. Message when stopped : ruby 1.8.6 debugger listens on port 2951 private method 'chomp!' called for nil:NilClass But no 'chomp!' in my project.
Hi Michel, I could (and will) try to debug some simple FXRuby project. But I would appreciate more information. - does it freeze randomly or always when you try to debug your project. - what debugger are you using. Fast Debugger (ruby-debug-ide) or classic (I suppose Ruby, not JRuby) - could you run the IDE with debugging flags as described at (very short): http://wiki.netbeans.org/wiki/view/RubyDebugging#section-RubyDebugging-HowToFileABug that might help. Thanks for the feedback.
We have found the culprit through emails with Michel. The problem is that $0 ($PROGRAM_NAME) variables is different when running under debugger then without it. So the following 'pattern' fails: if __FILE__ == $0 ... end I'm still not sure whether to fix it somehow. Probably possible by just adjusting $0 (writable). But there might be some problem as it is pointed in the discussion: http://www.ruby-forum.com/topic/113859#new (thanks for the link Michel) Leaving open for now.
Reassigning this issue to newly created 'ruby' component.
Just somebody has filed the same in ruby-debug. I believe this is bug in the backend and get when the debug-commons bug is fixed (see URL). Probably all we need is ARGV.shift. So actually will be solved by updating to the new version of ruby-debug-ide gem after the fix is available.
Just a note/reminder for me: http://rubyforge.org/tracker/index.php?func=detail&aid=16038&group_id=1900&atid=7438