[Quesiton] Is there a way to debug the rake file I created?

well, we all familar with the way of debugging normal code in
controller, model and the helper.

And I also want to add a ‘debugger’ line to the rake file I created
which load all my data into database when executed,
but I just can not find a way to do so after googling for a long time.

Can anyone tell me how to debug the customized rake file?

I heard that netbeans has a functionality of ‘rake task debug’, I
wonder if radrails has it too?

Thank you very much.

You can just use print lines in the appropriate places. Thats how I
debug them when needed.

Norm

yeah, this is the only way I figured out until now.
Are there any convinient ways to do that?

On 19 Sep 2008, at 02:24, boblu wrote:

well, we all familar with the way of debugging normal code in
controller, model and the helper.

And I also want to add a ‘debugger’ line to the rake file I created
which load all my data into database when executed,
but I just can not find a way to do so after googling for a long time.

It’s just regular ruby

rdebug rake – some_task

runs that task inside rdebug

Fred