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

**URL:** <https://www.ruby-forum.com/t/quesiton-is-there-a-way-to-debug-the-rake-file-i-created/148993>\
**Category:** Rails\
**Created:** [September 19, 2008, 3:25am UTC](https://www.ruby-forum.com/t/quesiton-is-there-a-way-to-debug-the-rake-file-i-created/148993 "2008-09-19T03:25:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boblu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b19c9b/32.png) [@boblu](https://www.ruby-forum.com/u/boblu)\
**Post date:** [September 19, 2008, 3:25am UTC](https://www.ruby-forum.com/t/quesiton-is-there-a-way-to-debug-the-rake-file-i-created/148993/1 "2008-09-19T03:25:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![boblu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b19c9b/32.png) [@boblu](https://www.ruby-forum.com/u/boblu)\
**Post date:** [September 19, 2008, 4:32am UTC](https://www.ruby-forum.com/t/quesiton-is-there-a-way-to-debug-the-rake-file-i-created/148993/2 "2008-09-19T04:32:37Z")

</div>

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

Norm

---

<div class="post-metadata">

**Author:** ![boblu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b19c9b/32.png) [@boblu](https://www.ruby-forum.com/u/boblu)\
**Post date:** [September 19, 2008, 5:03am UTC](https://www.ruby-forum.com/t/quesiton-is-there-a-way-to-debug-the-rake-file-i-created/148993/3 "2008-09-19T05:03:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![boblu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b19c9b/32.png) [@boblu](https://www.ruby-forum.com/u/boblu)\
**Post date:** [September 19, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/quesiton-is-there-a-way-to-debug-the-rake-file-i-created/148993/4 "2008-09-19T12:21:01Z")

</div>

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
