# How can run a rake task via "ruby ...." (i.e. so I can then use debug features of my IDE)

**URL:** <https://www.ruby-forum.com/t/how-can-run-a-rake-task-via-ruby-i-e-so-i-can-then-use-debug-features-of-my-ide/159467>\
**Category:** Ruby\
**Created:** [February 4, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/how-can-run-a-rake-task-via-ruby-i-e-so-i-can-then-use-debug-features-of-my-ide/159467 "2009-02-04T20:28:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [February 4, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/how-can-run-a-rake-task-via-ruby-i-e-so-i-can-then-use-debug-features-of-my-ide/159467/1 "2009-02-04T20:28:04Z")

</div>

Hi,

Know how can run a rake task via “ruby …” (i.e. so I can then use  
debug features of my IDE)?

For example the following doesn’t work:  
Macintosh-2:equity greg$ ruby lib/tasks/populate\_dummy\_data.rake  
lib/tasks/populate\_dummy\_data.rake:3: undefined method `namespace’  
for main:Object (NoMethodError)

thanks
