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.

Bug 168790 - Rake Debugging Does Not Honor Breakpoints in Modules
Summary: Rake Debugging Does Not Honor Breakpoints in Modules
Status: RESOLVED INCOMPLETE
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 05:11 UTC by esmithbss
Modified: 2009-09-03 10:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-07-20 05:11:06 UTC
I have a Ruby 1.8.7 app using Rails 2.3.2 with a number of custom rake tasks.

I have placed a breakpoint in my Rake Task.  This breakpoint works fine.

The Rake Task calls a method in a library module.

Within the library module, I have placed 2 breakpoints.  Neither breakpoint is honored.

There are no notifications or messages in the output indicating the breakpoints are or are not valid.
Comment 1 Martin Krauskopf 2009-08-26 15:33:56 UTC
Isn't this the same as issue #166285? I've tried create a new project, changed 'test' task to:

  Rake::TestTask.new do |t|
    $:.unshift File.join(File.dirname(__FILE__),'lib')
    require 'main'
    abcd()
    t.test_files = FileList['test/**/*.rb']
  end

tweaked main.rb to:

  puts "Hello World"

  def abcd
    puts 'abcd called'
  end

put breakpoint on Rakefile "abcd()" line, then to main.rb, both "puts" lines and all breakpoints were hit.

Could you provide similar steps to reproduce and/or detailed logging as usually. Thanks.
Comment 2 esmithbss 2009-09-03 05:27:49 UTC
This isn't quite the same; however, the underlying cause may be the same.

In the case of #166285, the application is being run under Webrick or Mongrel as a full web application.

Under this, the problem appears to be an issue with debugging under Rake possibly picking up on breakpoints and
registering them.
Comment 3 Martin Krauskopf 2009-09-03 10:00:45 UTC
So as noted in my previous comment:

"Could you provide similar steps to reproduce and/or detailed logging as usually."

if it still does not work for you. Tnx.