buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assaf Arkin" <ar...@intalio.com>
Subject Re: [buildr] How to debug?
Date Thu, 17 Jul 2008 01:13:24 GMT
On Wed, Jul 16, 2008 at 1:48 PM, lacton <lacton@users.sourceforge.net>
wrote:

> Hi,
>
> I want to debug (i.e., run step-by-step) buildr, but it seems I'm
> missing something important. Will you tell me how to do it?
>
> Here's what I tried.
>
> <code>
> require 'rubygems'
> load File.join(File.dirname(__FILE__), '../../lib/buildr.rb')
>
> load File.join(File.dirname(__FILE__), 'buildfile')
>
Buildr.application.run


> task('simple_java_project:package').invoke
> </code>
>

I didn't use it myself, but if you want true step-by-step and breakpoints,
you can try ruby-debug:
http://rubyforge.org/projects/ruby-debug/

Then just add:

  require 'ruby-debug' ; Debugger.start

at the top of the buildfile, and call debugger whenever you want a
breakpoint.

Assaf


>
> Although I can step through the Project.define method when 'buildfile'
> is loaded, nothing happens afterwards. The jar package is not created.
>
> Regards.
>
> Lacton
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message